Fix workflows and checks (#1872)

* Update translation workflow

* Fix broken checks

---------

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
This commit is contained in:
Daniel Girtler 2023-06-21 17:50:28 +10:00 committed by GitHub
parent 96cb6cc943
commit 21bf87f234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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