mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-05 07:55:12 +02:00
Fix workflow with gitub specific features after migration from gitea; create project plan
This commit is contained in:
1 parent
3d813200a5
commit
11bb420f19
5 files changed
+371
-218
No files matched your search
@@ -0,0 +1,45 @@
|
||||
name: Integration tests (minimal)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, Next ]
|
||||
pull_request:
|
||||
branches: [ main, Next ]
|
||||
|
||||
jobs:
|
||||
integration:
|
||||
name: Run integration tests
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
INTEGRATION_TEST: '1'
|
||||
TEST_PLAYLIST_URL: 'https://www.youtube.com/playlist?list=PLUmRr21IDW9WCW87FnbWAbIwwZHbf-lAz'
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: "https://gitea.com/actions/checkout@v5"
|
||||
|
||||
- name: Make bundled linux binaries executable (if present)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -d ./bin/linux ]; then
|
||||
chmod +x ./bin/linux/* || true
|
||||
ls -l ./bin/linux || true
|
||||
fi
|
||||
|
||||
- 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 in editable mode. If the 'test' extra exists, prefer it.
|
||||
python -m pip install -e .[test] || python -m pip install -e .
|
||||
python -m pip install pytest
|
||||
|
||||
- name: Run integration script directly
|
||||
env:
|
||||
YTPL_DEBUG: '1'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
. .venv/bin/activate
|
||||
python tests/integration_full_workflow_test.py
|
||||
Reference in new issue
Block a user