mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
fix tests
This commit is contained in:
22
.github/workflows/lint_js.yml
vendored
22
.github/workflows/lint_js.yml
vendored
@@ -1,22 +0,0 @@
|
|||||||
name: lint_js
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '**/*.js'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**/*.js'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
name: lint_js
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: '22'
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run lint
|
|
||||||
- run: npm run format -- --check
|
|
||||||
2
.github/workflows/lint_python.yml
vendored
2
.github/workflows/lint_python.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Install python dependencies
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r tubearchivist/requirements-dev.txt
|
pip install -r backend/requirements-dev.txt
|
||||||
|
|
||||||
- name: Run Linter
|
- name: Run Linter
|
||||||
run: ./deploy.sh validate
|
run: ./deploy.sh validate
|
||||||
|
|||||||
4
.github/workflows/unit_tests.yml
vendored
4
.github/workflows/unit_tests.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r tubearchivist/requirements-dev.txt
|
pip install -r backend/requirements-dev.txt
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: pytest tubearchivist
|
run: pytest backend
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ import pytest
|
|||||||
@pytest.fixture(scope="session", autouse=True)
|
@pytest.fixture(scope="session", autouse=True)
|
||||||
def change_test_dir(request):
|
def change_test_dir(request):
|
||||||
"""change directory to project folder"""
|
"""change directory to project folder"""
|
||||||
os.chdir(request.config.rootdir / "tubearchivist")
|
os.chdir(request.config.rootdir / "backend")
|
||||||
|
|||||||
Reference in New Issue
Block a user