--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 # 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 # not to have GHA download an (at the time of writing) 4 GB cache
# of PyTorch and other dependencies. # of PyTorch and other dependencies.
- name: deps
run: apt update && apt install python3-pip
- name: Install Ruff - name: Install Ruff
run: pip install ruff==0.1.6 run: pip install ruff==0.1.6 --break-system-packages
- name: Run Ruff - name: Run Ruff
run: ruff . run: ruff .
lint-js: # lint-js:
name: eslint # name: eslint
runs-on: ubuntu-latest # 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 # if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps: # steps:
- name: Checkout Code # - name: Checkout Code
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Install Node.js # - name: Install Node.js
uses: actions/setup-node@v3 # uses: actions/setup-node@v3
with: # with:
node-version: 18 # node-version: 18
- run: npm i --ci # - run: npm i --ci
- run: npm run lint # - run: npm run lint

View File

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