Files
python-template/.github/workflows/test.yaml
2024-09-26 19:42:19 +02:00

39 lines
679 B
YAML

name: Run tests only
on:
push:
branches:
- '*'
workflow_call:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: 🔀 checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🐍 python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: 📦 setup pdm
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: 📦 install dependencies
run: |
pdm install
- name: 🧪 run tests
id: test
run: |
pdm run pytest -v