-
Notifications
You must be signed in to change notification settings - Fork 8
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 #224 from Deltares/multi-python-pixi
Make use of multi-python pixi
- Loading branch information
Showing
6 changed files
with
23,896 additions
and
22,224 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 |
---|---|---|
|
@@ -8,6 +8,10 @@ on: | |
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -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 | ||
|
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 @@ | ||
# 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" |
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
Oops, something went wrong.