Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-06-21 17:50:28 +1000
committerGitHub <noreply@github.com>2023-06-21 09:50:28 +0200
commit21bf87f234a9f8782a13492d815ed3c9aff9d0ed (patch)
tree31cb3fb7559c6c64eaad5433dc1eddaad5976fa7 /.github/workflows
parent96cb6cc943758664ca4b91ea8adc4c4e29f124d2 (diff)
Fix workflows and checks (#1872)
* Update translation workflow * Fix broken checks --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/flake8.yaml4
-rw-r--r--.github/workflows/mypy.yaml4
-rw-r--r--.github/workflows/pytest.yaml4
-rw-r--r--.github/workflows/translation-check.yaml12
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