-
-
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.
- Loading branch information
Showing
3 changed files
with
56 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build and run tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- ci-pytest | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04, macos-12, windows-2019 ] | ||
|
||
runs-on: ${{matrix.os}} | ||
continue-on-error: true | ||
|
||
steps: | ||
- name: Checkout repository. | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Move repository to disk C. | ||
if: matrix.os == 'windows-2019' | ||
run: xcopy . C:\src\ /E/H | ||
|
||
- name: Setup Python. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Build and install package. | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
python setup.py install | ||
sudo apt install -y python3.9-dev | ||
- name: Build and install package. | ||
if: matrix.os == 'macos-12' | ||
run: python setup.py install | ||
|
||
- name: Build and install package. | ||
if: matrix.os == 'windows-2019' | ||
working-directory: "C:/src" | ||
run: python setup.py install | ||
|
||
- name: Install dev dependencies. | ||
run: pip install -r requirements-dev.txt | ||
|
||
- name: Run tests. | ||
run: pytest tests -vv |