-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gh-actions continuous integration
- Loading branch information
1 parent
c4b407f
commit 074aa35
Showing
1 changed file
with
32 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: continuous-integration | ||
on: push | ||
|
||
env: | ||
PROJECT_ROOT: ${{ github.workspace }} | ||
|
||
jobs: | ||
tests: | ||
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: "actions/checkout@v3" | ||
- uses: "actions/setup-python@v4" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install package dependencies" | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --use-pep517 . # TODO pep517 flag; see #36 | ||
python -m pip install --use-pep517 -r requirements.txt # TODO pep517 flag; see #36 | ||
- name: "Run package tests for ${{ matrix.python-version }}, ${{ matrix.os }}" | ||
run: "python -m pytest -vv" |