Skip to content

Commit

Permalink
More explicit version, no if
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Dec 4, 2023
1 parent 3d76686 commit 7d78a8e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,39 @@ jobs:
uses: actions/setup-python@v2
- name: Run pre-commit
uses: pre-commit/[email protected]

build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Setup Pixi
uses: prefix-dev/[email protected]
- name: Setup older Python versions
if: ${{ matrix.python-version }} != "3.11"
run: pixi add python=${{ matrix.python-version }}
- name: Run Tests
run: pixi run test

build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Setup Pixi
uses: prefix-dev/[email protected]
- name: Run Tests
run: pixi run test
- name: Publish Code Coverage
if: ${{ matrix.python-version }} == "3.11"
uses: codecov/codecov-action@v3
- name: Build Docs
if: ${{ matrix.python-version }} == "3.11"
run: pixi run docs
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ matrix.python-version }} == "3.11"
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build

0 comments on commit 7d78a8e

Please sign in to comment.