-
Notifications
You must be signed in to change notification settings - Fork 5
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 #29 from simon-hirsch/test_python_313
Increase test coverage for python / numpy versions
- Loading branch information
Showing
4 changed files
with
55 additions
and
6 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,46 @@ | ||
name: Automated Tests | ||
on: | ||
push: | ||
branches: | ||
- '**' # matches every branch | ||
- '!gh-pages' # excludes gh-pages | ||
pull_request: | ||
branches: | ||
- '**' # matches every branch | ||
- '!gh-pages' # excludes gh-pages | ||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
# runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.10", "3.11", "3.12"] # "3.13"] | ||
numpy-version: ["1.26", "2.0.0", "2.1.0", "2.2.0"] | ||
exclude: | ||
- python-version: "3.13" | ||
numpy-version: "1.26" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
- name: Install dependencies | ||
run: | | ||
python -m ensurepip --upgrade | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools | ||
pip install numpy==${{ matrix.numpy-version }} | ||
pip install flake8 pytest | ||
if [ -f requirements_tests.txt ]; then pip install -r requirements_tests.txt; fi | ||
- name: Build package | ||
run: python -m build --wheel | ||
- name: Install Package | ||
run: pip install dist/* | ||
- name: Run tests with pytest | ||
run: pytest tests | ||
|
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
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
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,5 +1,4 @@ | ||
numpy>1.26.0, <2.0.0 | ||
numba>0.59, <1.0.0 | ||
numba | ||
scipy | ||
scikit-learn | ||
build |