From f9479e32df3b2130c8a84ad430dbce273288ffb1 Mon Sep 17 00:00:00 2001 From: soaska <79996669747@ya.ru> Date: Fri, 3 May 2024 21:42:23 +0300 Subject: [PATCH] --break-system-packages --- .gitea/workflows/on_pull_request.yaml | 30 ++++++++++++++------------- .gitea/workflows/run_tests.yaml | 6 ++++-- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/on_pull_request.yaml b/.gitea/workflows/on_pull_request.yaml index d852745c..08ec7f3d 100644 --- a/.gitea/workflows/on_pull_request.yaml +++ b/.gitea/workflows/on_pull_request.yaml @@ -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 diff --git a/.gitea/workflows/run_tests.yaml b/.gitea/workflows/run_tests.yaml index 975d734f..393b318e 100644 --- a/.gitea/workflows/run_tests.yaml +++ b/.gitea/workflows/run_tests.yaml @@ -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"