mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-03 23:38:14 +02:00
35 lines
689 B
YAML
35 lines
689 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
tests:
|
|
name: Run unit tests
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: '3.11'
|
|
cache: 'pip'
|
|
|
|
- name: Install project
|
|
run: |
|
|
set -euo pipefail
|
|
python -m pip install --upgrade pip
|
|
# Install project (editable) and test deps
|
|
python -m pip install -e ".[test]"
|
|
|
|
- name: Run tests
|
|
run: |
|
|
set -euo pipefail
|
|
pytest -q
|