use native run steps instead of GitHub actions
This commit is contained in:
parent
0368d56b80
commit
cc9168e58d
@ -10,18 +10,21 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
run: |
|
||||||
with:
|
python3 --version
|
||||||
python-version: "3.11"
|
pip3 --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip install ruff mypy
|
pip3 install ruff mypy
|
||||||
pip install -e ".[dev]"
|
pip3 install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run ruff
|
- name: Run ruff
|
||||||
run: ruff check .
|
run: ruff check .
|
||||||
@ -32,26 +35,30 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory "$GITEA_WORKSPACE"
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
run: |
|
||||||
with:
|
python3 --version
|
||||||
python-version: "3.11"
|
pip3 --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip install -e ".[dev]"
|
pip3 install -e ".[dev]"
|
||||||
pip install -r requirements-api.txt
|
pip3 install -r requirements-api.txt
|
||||||
|
|
||||||
- name: Run pytest
|
- 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:
|
docker-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory "$GITEA_WORKSPACE"
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
@ -60,16 +67,18 @@ jobs:
|
|||||||
security:
|
security:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory "$GITEA_WORKSPACE"
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
run: |
|
||||||
with:
|
python3 --version
|
||||||
python-version: "3.11"
|
pip3 --version
|
||||||
|
|
||||||
- name: Run bandit (Python SAST)
|
- name: Run bandit (Python SAST)
|
||||||
run: |
|
run: |
|
||||||
pip install bandit
|
pip3 install bandit
|
||||||
bandit -r youtube_cli/ youtube_tui/ web/server/ -ll
|
bandit -r youtube_cli/ youtube_tui/ web/server/ -ll
|
||||||
|
|
||||||
build-result:
|
build-result:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user