mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 13:07:54 -06:00
37 lines
675 B
YAML
37 lines
675 B
YAML
name: 🧪 Run Tests
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'src/**/*.py'
|
|
- 'tests/**/*.py'
|
|
- 'pyproject.toml'
|
|
|
|
jobs:
|
|
run-tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.8','3.9','3.10','3.11']
|
|
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
|
|
|
|
|