--break-system-packages
Some checks failed
Linter / ruff (push) Failing after 9s
Tests / tests on CPU (push) Failing after 9s

This commit is contained in:
soaska 2024-05-03 21:42:23 +03:00
parent f54054b180
commit f9479e32df
2 changed files with 20 additions and 16 deletions

View File

@ -19,20 +19,22 @@ jobs:
# from the requirements.txt file(s) in the repository; it's faster
# not to have GHA download an (at the time of writing) 4 GB cache
# of PyTorch and other dependencies.
- name: deps
run: apt update && apt install python3-pip
- name: Install Ruff
run: pip install ruff==0.1.6
run: pip install ruff==0.1.6 --break-system-packages
- name: Run Ruff
run: ruff .
lint-js:
name: eslint
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --ci
- run: npm run lint
# lint-js:
# name: eslint
# runs-on: ubuntu-latest
# if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18
# - run: npm i --ci
# - run: npm run lint

View File

@ -22,7 +22,9 @@ jobs:
cache: pip
cache-dependency-path: |
**/requirements*txt
launch.py
launch.py
- name: deps
run: apt update && apt install python3-pip
- name: Cache models
id: cache-models
uses: actions/cache@v3
@ -30,7 +32,7 @@ jobs:
path: models
key: "2023-12-30"
- name: Install test dependencies
run: pip install wait-for-it -r requirements-test.txt
run: pip install wait-for-it -r requirements-test.txt --break-system-packages
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_PROGRESS_BAR: "off"