-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from deltamarnix/pixi
Enable pixi
- Loading branch information
Showing
8 changed files
with
8,063 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,15 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- name: Setup pixi | ||
uses: prefix-dev/setup-[email protected] | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install Python packages | ||
run: pip install ".[lint]" | ||
pixi-version: v0.32.0 | ||
environments: dev | ||
activate-environment: true | ||
|
||
- name: Run ruff | ||
run: ruff check . | ||
run: pixi run lint | ||
|
||
build: | ||
name: Build | ||
|
@@ -41,22 +38,18 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- name: Setup pixi | ||
uses: prefix-dev/setup-[email protected] | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install Python packages | ||
run: | | ||
pip install --upgrade pip | ||
pip install build twine | ||
pip --verbose install . | ||
pixi-version: v0.32.0 | ||
environments: dev | ||
activate-environment: true | ||
|
||
- name: Print package version | ||
run: python -c "from flopy4 import version; print(version.__version__)" | ||
|
||
- name: Build package | ||
run: python -m build | ||
run: pixi run build | ||
|
||
test: | ||
name: Test | ||
|
@@ -68,7 +61,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-22.04, macos-12, windows-2022 ] | ||
python: [ "3.10", "3.11", "3.12" ] | ||
python: [ "310", "311", "312" ] | ||
env: | ||
GCC_V: 11 | ||
steps: | ||
|
@@ -81,13 +74,12 @@ jobs: | |
with: | ||
repo: modflow6-nightly-build | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- name: Setup pixi | ||
uses: prefix-dev/setup-[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install Python packages | ||
run: pip install ".[test]" | ||
pixi-version: v0.32.0 | ||
environments: test${{ matrix.python }} | ||
activate-environment: true | ||
|
||
- name: Run tests | ||
run: pytest -v -n auto | ||
run: pixi run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
build/ | ||
docs/examples/*.ipynb | ||
venv/ | ||
.vscode | ||
.DS_Store | ||
.ruff_cache | ||
*.egg-info | ||
**/__pycache__/ | ||
**/__pycache__/ | ||
|
||
# pixi environments | ||
.pixi | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python Debugger: Current File", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"purpose": ["debug-test"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"test" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pixi run -e dev code . | exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters