From 21bf87f234a9f8782a13492d815ed3c9aff9d0ed Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Wed, 21 Jun 2023 17:50:28 +1000 Subject: Fix workflows and checks (#1872) * Update translation workflow * Fix broken checks --------- Co-authored-by: Daniel Girtler --- .github/workflows/flake8.yaml | 4 ++-- .github/workflows/mypy.yaml | 4 ++-- .github/workflows/pytest.yaml | 4 ++-- .github/workflows/translation-check.yaml | 12 ++++++++---- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/flake8.yaml b/.github/workflows/flake8.yaml index d9db80e9..a33fb07c 100644 --- a/.github/workflows/flake8.yaml +++ b/.github/workflows/flake8.yaml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: pacman --noconfirm -Syu python python-pip - - run: python -m pip install --upgrade pip - - run: pip install flake8 + - run: pip install --break-system-packages --upgrade pip + - run: pip install --break-system-packages flake8 - name: Lint with flake8 run: flake8 diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml index e0db6f06..ccca2b9d 100644 --- a/.github/workflows/mypy.yaml +++ b/.github/workflows/mypy.yaml @@ -8,8 +8,8 @@ jobs: steps: - uses: actions/checkout@v3 - run: pacman --noconfirm -Syu python mypy python-pip - - run: python -m pip install --upgrade pip - - run: pip install fastapi pydantic + - run: pip install --break-system-packages --upgrade pip + - run: pip install --break-system-packages fastapi pydantic - run: python --version - run: mypy --version # one day this will be enabled diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 568a6e6c..83d2e177 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: pacman --noconfirm -Syu python python-pip qemu gcc - - run: python -m pip install --upgrade pip - - run: pip install pytest + - run: python -m pip install --break-system-packages --upgrade pip + - run: pip install --break-system-packages pytest - name: Test with pytest run: python -m pytest || exit 0 diff --git a/.github/workflows/translation-check.yaml b/.github/workflows/translation-check.yaml index 18a3b5fc..1d9a5de6 100644 --- a/.github/workflows/translation-check.yaml +++ b/.github/workflows/translation-check.yaml @@ -1,7 +1,10 @@ on: - [ push, pull_request ]: - paths: - - 'archinstall/locales/**' + push: + paths: + - 'archinstall/locales/**' + pull_request: + paths: + - 'archinstall/locales/**' name: translation file checks jobs: translation-check: @@ -11,7 +14,8 @@ jobs: steps: - uses: actions/checkout@v3 - run: pacman --noconfirm -Syu python python-pip - - run: python -m pip install --upgrade pip + - run: pip install --break-system-packages --upgrade pip - run: cd archinstall/locales - run: bash locales_generator.sh - run: git diff --name-only + - run: ls -- cgit v1.2.3-70-g09d2