Skip to content

Commit

Permalink
using python action instead of conda
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Jan 5, 2025
1 parent dc1ef5d commit 75206fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/documentation_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
test:
name: Documentation
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]

steps:
- name: Install system packages
run: |
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75206fa

Please sign in to comment.