Merge pull request #32 from cocolato/dev #15
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {name: '3.12', python: '3.12', os: ubuntu-latest} | |
- {name: '3.11', python: '3.11', os: ubuntu-latest} | |
- {name: '3.10', python: '3.10', os: ubuntu-latest} | |
- {name: '3.9', python: '3.9', os: ubuntu-latest} | |
- {name: '3.8', python: '3.8', os: ubuntu-latest} | |
- {name: '3.7', python: '3.7', os: ubuntu-latest} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: true | |
- name: Install dependencies | |
run: pdm install -Gtest | |
- name: Run tests | |
run: pdm run test |