Merge branch 'master' of github.com:pydy/pydy #106
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
name: tests | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build: | |
name: Build and run tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- 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 matplotlib pytest pytest-cov numpy pythreejs sympy scipy | |
- name: Install window dependencies | |
if: ${{ matrix.os=='windows-latest' }} | |
run: | | |
mamba install -q -y pywin32 | |
- name: Test with pytest | |
run: pytest --cov . | |
- name: Test installation of PyDy | |
run: python setup.py install |