Bump minimum dependency versions to match Ubuntu 22.04 and Python >=3.9 #107
Workflow file for this run
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.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 |