-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try switching to GitHub Actions for continuous integration testing (#20)
* Try switching to GitHub Actions for continuous integration testing * Trying an Ubuntu version that has support for all tested Python versions * test with more recent Python/numpy/scipy versions * Python 3.12 breaks a lot of older stuff due to missing distutils * tweaks for version compatibility * another try
- Loading branch information
Showing
7 changed files
with
68 additions
and
44 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 @@ | ||
numpy==1.23.5 | ||
scipy==1.9.3 |
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 @@ | ||
numpy==1.26.4 | ||
scipy==1.12.0 |
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 @@ | ||
numpy==1.20.3 | ||
scipy==1.7.3 |
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,61 @@ | ||
name: Run all tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
name: Test with Python ${{ matrix.python-version }} and ${{ matrix.req-version }} requirements on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.8", "3.10", "3.12"] | ||
req-version: ["oldest", "middle", "newest"] | ||
os: ["ubuntu-24.04"] | ||
exclude: | ||
- python-version: "3.8" | ||
req-version: "newest" | ||
- python-version: "3.10" | ||
req-version: "oldest" | ||
- python-version: "3.12" | ||
req-version: "oldest" | ||
- python-version: "3.12" | ||
req-version: "middle" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install requirements ${{ matrix.req-version }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r .github/workflows/requirements-${{ matrix.req-version }}.txt | ||
pip install pytest pytest-cov | ||
pip install . | ||
- name: Run tests | ||
run: | | ||
pytest --cov=lazyarray -v | ||
# - name: Upload coverage data | ||
# run: | | ||
# coveralls --service=github | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# COVERALLS_FLAG_NAME: ${{ matrix.test-name }} | ||
# COVERALLS_PARALLEL: true | ||
# coveralls: | ||
# name: Indicate completion to coveralls.io | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
# container: python:3-slim | ||
# steps: | ||
# - name: Finished | ||
# run: | | ||
# pip3 install --upgrade coveralls | ||
# coveralls --service=github --finish | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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