Skip to content

Commit

Permalink
updated ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Geo committed Mar 22, 2024
1 parent 57d929a commit 9bf418b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
jobs:
lint:
runs-on: windows-latest
steps:
Expand All @@ -22,26 +22,25 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.5.1
- name: Install ruff
uses: pip install ruff
- name: Run linter
run: pixi run lint
run: ruff check ./geost

test:
runs-on: windows-latest
strategy:
matrix:
python-version:
- "3.10"
environment: [py310, py312]
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.5.1
- name: Setup older Python versions
run: |
pixi add python=${{ matrix.python-version }}
pixi list
with:
environments: ${{ matrix.environment }}
- name: Run linter
run: pixi run lint
- name: Run Tests
run: pixi run test

Expand Down
12 changes: 12 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ ruff = "*"
sphinx = "*"
sphinx-rtd-theme = "*"
pip = ">=24.0,<25"

[feature.py310.dependencies]
python = "3.10.13"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"

[environments]
py310 = ["py310"]
py311 = ["py311"]
py312 = ["py312"]

0 comments on commit 9bf418b

Please sign in to comment.