Skip to content

Commit

Permalink
Added CI action to test on the oldest supported depenencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Mar 4, 2023
1 parent ca21f69 commit 8d58dd9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/oldest.yml
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

0 comments on commit 8d58dd9

Please sign in to comment.