-
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 #185 from Deltares/multiple-python
WIP: Run multiple Python versions during tests
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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 |
---|---|---|
|
@@ -18,6 +18,23 @@ jobs: | |
uses: actions/setup-python@v2 | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Pixi | ||
uses: prefix-dev/[email protected] | ||
- name: Setup older Python versions | ||
run: pixi add python=${{ matrix.python-version }} | ||
- name: Run Tests | ||
run: pixi run test | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
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,3 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
import warnings | ||
|
||
import numpy as np | ||
|