2023-09-27 13:34:10 -05:00
|
|
|
name: 🧪 Run Tests
|
2023-10-07 14:24:03 -05:00
|
|
|
|
2023-09-27 13:34:10 -05:00
|
|
|
on:
|
2023-10-07 14:24:03 -05:00
|
|
|
pull_request:
|
2023-09-27 13:34:10 -05:00
|
|
|
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'
|
2023-09-27 13:34:10 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
run-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-09-27 15:53:27 -05:00
|
|
|
python-version: ['3.8','3.9','3.10','3.11']
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
# - macos-latest
|
|
|
|
|
2023-09-27 13:34:10 -05:00
|
|
|
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
|
|
|
|
|
|
|
|
|