@@ -20,18 +20,15 @@ jobs:
2020 - name : Checkout repo
2121 uses : actions/checkout@v4
2222
23- - name : Setup Python
24- uses : actions /setup-python@v5
23+ - name : Setup pixi
24+ uses :
prefix-dev /setup-[email protected] 2525 with :
26- python-version : " 3.10"
27- cache : ' pip'
28- cache-dependency-path : pyproject.toml
29-
30- - name : Install Python packages
31- run : pip install ".[lint]"
26+ pixi-version : v0.32.0
27+ environments : dev
28+ activate-environment : true
3229
3330 - name : Run ruff
34- run : ruff check .
31+ run : pixi run lint
3532
3633 build :
3734 name : Build
@@ -41,22 +38,18 @@ jobs:
4138 - name : Checkout repo
4239 uses : actions/checkout@v3
4340
44- - name : Setup Python
45- uses : actions /setup-python@v5
41+ - name : Setup pixi
42+ uses :
prefix-dev /setup-[email protected] 4643 with :
47- python-version : " 3.10"
48-
49- - name : Install Python packages
50- run : |
51- pip install --upgrade pip
52- pip install build twine
53- pip --verbose install .
44+ pixi-version : v0.32.0
45+ environments : dev
46+ activate-environment : true
5447
5548 - name : Print package version
5649 run : python -c "from flopy4 import version; print(version.__version__)"
5750
5851 - name : Build package
59- run : python -m build
52+ run : pixi run build
6053
6154 test :
6255 name : Test
6861 fail-fast : false
6962 matrix :
7063 os : [ ubuntu-22.04, macos-12, windows-2022 ]
71- python : [ "3.10 ", "3.11 ", "3.12 " ]
64+ python : [ "310 ", "311 ", "312 " ]
7265 env :
7366 GCC_V : 11
7467 steps :
@@ -81,13 +74,12 @@ jobs:
8174 with :
8275 repo : modflow6-nightly-build
8376
84- - name : Setup Python
85- uses : actions /setup-python@v5
77+ - name : Setup pixi
78+ uses :
prefix-dev /setup-[email protected] 8679 with :
87- python-version : ${{ matrix.python }}
88-
89- - name : Install Python packages
90- run : pip install ".[test]"
80+ pixi-version : v0.32.0
81+ environments : test${{ matrix.python }}
82+ activate-environment : true
9183
9284 - name : Run tests
93- run : pytest -v -n auto
85+ run : pixi run test
0 commit comments