Skip to content

Merge pull request #504 from moorepants/update #110

Merge pull request #504 from moorepants/update

Merge pull request #504 from moorepants/update #110

Workflow file for this run

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.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: test-environment
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install basic dependencies
run: |
conda install -q -y coverage cython matplotlib pytest pytest-cov numpy pythreejs sympy scipy
- name: Install window dependencies
if: ${{ matrix.os=='windows-latest' }}
run: |
conda install -q -y pywin32
- name: Test with pytest
run: pytest --cov .
- name: Test installation of PyDy
run: python setup.py install