mirror of
https://github.com/pufereq/python-template.git
synced 2025-12-15 07:39:32 +00:00
39 lines
679 B
YAML
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
|