-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CI action to test on the oldest supported depenencies.
- Loading branch information
1 parent
ca21f69
commit 8d58dd9
Showing
1 changed file
with
42 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,42 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
branches: master | ||
|
||
jobs: | ||
build: | ||
name: Build and run tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: "ubuntu-20.04" | ||
python-version: "3.7" | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Cancel previous workflows | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
activate-environment: test-environment | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
miniforge-variant: Mambaforge | ||
- name: Install basic dependencies | ||
run: | | ||
mamba install -q -y coverage cython=0.29.* matplotlib=3.1.* nose numpy=1.16.* pythreejs sympy=1.5.* scipy=1.3.* | ||
- name: Test with nose | ||
run: nosetests -v --with-coverage --cover-package=pydy | ||
- name: Test installation of PyDy | ||
run: python setup.py install |