Skip to content

Commit

Permalink
Added explicit reinstall of pytest in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Geo committed Mar 22, 2024
1 parent d60fdc0 commit e38a1ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
environment: [py310, py312]
python-version:
- "3.10"
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.5.1
with:
environments: ${{ matrix.environment }}
- name: Run linter
run: pixi run lint
- name: Setup older Python versions
run: |
pixi add python=${{ matrix.python-version }}
pixi remove pytest
pixi add pytest
- name: Run Tests
run: pixi run test

Expand Down
18 changes: 9 additions & 9 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 2 additions & 14 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,9 @@ openpyxl = "*"
shapely = ">=2.0.1"
pyvista = "*"
black = "*"
pytest = ">=8.0,<8.1"
pytest = ">=8.1.1,<8.2"
pytest-cov = "*"
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"]
pip = ">=24.0,<25"

0 comments on commit e38a1ad

Please sign in to comment.