viv/.github/workflows/test.yml

38 lines
683 B
YAML
Raw Normal View History

name: 🧪 Run Tests
2023-10-07 14:24:03 -05:00
on:
2023-10-07 14:24:03 -05:00
pull_request:
workflow_call:
workflow_dispatch:
2024-01-09 01:43:43 -06:00
push:
2024-01-09 01:44:17 -06:00
paths:
2024-01-09 01:43:43 -06:00
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
2024-07-12 11:40:33 -05:00
python-version: ['3.8','3.9','3.10','3.11', '3.12']
os:
- ubuntu-latest
- windows-latest
# - macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version}}
- name: Install dependencies
run: pdm sync -d -G test
- name: Run Tests
run: pdm run -v pytest tests