Skip to content

Commit

Permalink
Updated CI and README badges
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed May 31, 2024
1 parent b8c88bf commit 5d6c854
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]

unix:
Expand All @@ -29,26 +29,26 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install mamba
uses: mamba-org/provision-with-micromamba@main
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
environment-name: xwidgets

- name: Cmake configure
shell: bash -l -eo pipefail {0}
run: >
cmake -B build -Werror=dev
${CMAKE_ARGS}
-D CMAKE_BUILD_TYPE=Release
-D XWIDGETS_BUILD_TESTS=ON
-D CMAKE_PREFIX_PATH="${CONDA_PREFIX}"
run: |
cmake -B build -Werror=dev \
${CMAKE_ARGS} \
-D CMAKE_BUILD_TYPE=Release \
-D XWIDGETS_BUILD_TESTS=ON \
-D CMAKE_PREFIX_PATH="${CONDA_PREFIX}" \
-D CMAKE_INSTALL_PREFIX="${CONDA_PREFIX}"
- name: Build
shell: bash -l -eo pipefail {0}
run: cmake --build build/ --parallel 2

- name: Test xwidgets
Expand Down Expand Up @@ -82,18 +82,13 @@ jobs:
os: [windows-2019, windows-2022]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: install mamba
uses: mamba-org/provision-with-micromamba@main
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
init-shell: cmd.exe
environment-file: environment-dev.yml
environment-name: xwidgets

- name: micromamba shell hook
shell: powershell
run: |
micromamba shell hook -s cmd.exe -p C:\Users\runneradmin\micromamba-root

- name: Make build directory
run: mkdir build
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ![xwidgets](docs/source/xwidgets.svg)

[![Azure Pipelines](https://dev.azure.com/jupyter-xeus/jupyter-xeus/_apis/build/status/jupyter-xeus.xwidgets?branchName=master)](https://dev.azure.com/jupyter-xeus/jupyter-xeus/_build/latest?definitionId=6&branchName=master)
[![Appveyor](https://ci.appveyor.com/api/projects/status/kjoatvulm28dpr3r?svg=true)](https://ci.appveyor.com/project/jupyter-xeus/xwidgets)
[![GithubActions](https://github.com/jupyter-xeus/xwidgets/actions/workflows/main.yml/badge.svg)](https://github.com/jupyter-xeus/xwidgets/actions/workflows/main.yml)
[![Documentation](http://readthedocs.org/projects/xwidgets/badge/?version=latest)](https://xwidgets.readthedocs.io/en/latest/?badge=latest)
[![Binder](https://img.shields.io/badge/launch-binder-brightgreen.svg)](https://mybinder.org/v2/gh/jupyter-xeus/xwidgets/stable?filepath=notebooks/xwidgets.ipynb)
[![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down

0 comments on commit 5d6c854

Please sign in to comment.