Skip to content

Commit

Permalink
Merge pull request #224 from Deltares/multi-python-pixi
Browse files Browse the repository at this point in the history
Make use of multi-python pixi
  • Loading branch information
Huite committed Apr 12, 2024
2 parents ca17eb0 + 88586c2 commit fd31e92
Show file tree
Hide file tree
Showing 6 changed files with 23,896 additions and 22,224 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -18,32 +22,39 @@ jobs:
uses: actions/setup-python@v2
- name: Run pre-commit
uses: pre-commit/[email protected]

test:
runs-on: ubuntu-latest
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.12"
os:
- ubuntu-latest
- macOS-latest
- windows-latest
pixi-environment:
- py312
- py311
- py310
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.3.0
- name: Setup older Python versions
run: pixi add python=${{ matrix.python-version }}
uses: prefix-dev/setup-pixi@v0.5.1
with:
manifest-path: pyproject.toml
- name: Run Tests
run: pixi run test
run: pixi run --environment ${{ matrix.pixi-environment }} test

build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
uses: prefix-dev/[email protected]
with:
manifest-path: pyproject.toml
- name: Run Tests
run: pixi run test
- name: Publish Code Coverage
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ venv/
ENV/
env.bak/
venv.bak/
.pixi/

# Spyder project settings
.spyderproject
Expand All @@ -116,3 +115,8 @@ venv.bak/

# mypy
.mypy_cache/

# pixi environments
.pixi
*.egg-info

Loading

0 comments on commit fd31e92

Please sign in to comment.