1
0
mirror of https://github.com/darkzoul5/YoutubePlaylistSync.git synced 2026-07-04 21:04:01 +03:00

Fix workflow with gitub specific features after migration from gitea; create project plan

This commit is contained in:
2026-03-17 15:25:42 +02:00
parent 3d813200a5
commit 11bb420f19
5 changed files with 371 additions and 218 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Unit tests
on:
push:
branches: [ main, Next ]
pull_request:
branches: [ main, Next ]
jobs:
unit:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: "https://gitea.com/actions/checkout@v5"
- name: Create venv and install project
run: |
set -euo pipefail
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
# Install project (editable) and test deps
python -m pip install -e .[test] || python -m pip install -e .
python -m pip install pytest
- name: Run tests
run: |
set -euo pipefail
. .venv/bin/activate
pytest -q