diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 478c6a87..910daa46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,19 +25,15 @@ jobs: - name: checkout actions uses: actions/checkout@v4 - - uses: mamba-org/setup-micromamba@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 with: - micromamba-version: '1.5.8-0' # any version from https://github.com/mamba-org/micromamba-releases - init-shell: bash - cache-environment: true - post-cleanup: 'all' + python-version: ${{ matrix.python-version }} - name: install dependencies - shell: bash -el {0} run: python -m pip install .[tests] - name: Test with pytest - shell: bash -el {0} run: | pytest -v python examples/plasma.py diff --git a/.github/workflows/documentation_update.yml b/.github/workflows/documentation_update.yml index 25a6c651..d2bf00f2 100644 --- a/.github/workflows/documentation_update.yml +++ b/.github/workflows/documentation_update.yml @@ -18,6 +18,10 @@ jobs: test: name: Documentation runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12"] + steps: - name: Install system packages run: | @@ -27,20 +31,16 @@ jobs: - name: checkout actions uses: actions/checkout@v4 - - uses: mamba-org/setup-micromamba@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 with: - micromamba-version: '1.5.8-0' # any version from https://github.com/mamba-org/micromamba-releases - init-shell: bash - cache-environment: true - post-cleanup: 'all' + python-version: ${{ matrix.python-version }} - name: install dependencies - shell: bash -el {0} run: python -m pip install .[docs] - name: Sphinx build tagged version if: startsWith(github.ref, 'refs/tags/') - shell: bash -el {0} run: | sphinx-build docs _build/${{ github.ref_name }} rm -rf _build/stable @@ -49,7 +49,6 @@ jobs: - name: Sphinx build dev version if: (github.event_name == 'push' || github.event_name == 'pull_request') && !startsWith(github.ref, 'refs/tags/') - shell: bash -el {0} run: | rm -rf _build/dev mkdir -p _build/dev