use native run steps instead of GitHub actions

This commit is contained in:
Jarian Cottingham 2026-07-04 15:30:33 +00:00
parent 0368d56b80
commit cc9168e58d

View File

@ -10,18 +10,21 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout repository
run: |
git config --global --add safe.directory "$GITEA_WORKSPACE"
ls -la "$GITEA_WORKSPACE"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
run: |
python3 --version
pip3 --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff mypy
pip install -e ".[dev]"
python3 -m pip install --upgrade pip
pip3 install ruff mypy
pip3 install -e ".[dev]"
- name: Run ruff
run: ruff check .
@ -32,26 +35,30 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout repository
run: |
git config --global --add safe.directory "$GITEA_WORKSPACE"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
run: |
python3 --version
pip3 --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
pip install -r requirements-api.txt
python3 -m pip install --upgrade pip
pip3 install -e ".[dev]"
pip3 install -r requirements-api.txt
- name: Run pytest
run: python -m pytest tests/ web/server/tests/ -v --tb=short
run: python3 -m pytest tests/ web/server/tests/ -v --tb=short
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout repository
run: |
git config --global --add safe.directory "$GITEA_WORKSPACE"
- name: Build Docker image
run: |
@ -60,16 +67,18 @@ jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout repository
run: |
git config --global --add safe.directory "$GITEA_WORKSPACE"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
run: |
python3 --version
pip3 --version
- name: Run bandit (Python SAST)
run: |
pip install bandit
pip3 install bandit
bandit -r youtube_cli/ youtube_tui/ web/server/ -ll
build-result: