buidl(CICD): add separate linters, build wallpaperchanger
Python tests / test-serverlibrary (push) Successful in 12s
Python tests / test-wallpaper-changer (push) Successful in 21s
Python tests / lint-wallpaper-changer (push) Successful in 5s
Python tests / lint-serverlibrary (push) Successful in 5s
Python tests / build (push) Failing after 20s
Python tests / test-serverlibrary (push) Successful in 12s
Python tests / test-wallpaper-changer (push) Successful in 21s
Python tests / lint-wallpaper-changer (push) Successful in 5s
Python tests / lint-serverlibrary (push) Successful in 5s
Python tests / build (push) Failing after 20s
This commit is contained in:
1 parent
eb59830e40
commit
2ad2c0a96c
1 file changed
+45
-6
@@ -50,7 +50,7 @@ jobs:
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
python tests/run_tests.py
|
||||
lint:
|
||||
lint-wallpaper-changer:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: nikolaik/python-nodejs:python3.12-nodejs20
|
||||
@@ -59,10 +59,49 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install lint tools
|
||||
run: |
|
||||
pip install ruff
|
||||
- name: Install Ruff
|
||||
run: pip install ruff
|
||||
|
||||
- name: Run lint
|
||||
- name: Lint wallpaper_changer
|
||||
run: ruff check wallpaper_changer
|
||||
|
||||
lint-serverlibrary:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: nikolaik/python-nodejs:python3.12-nodejs20
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Ruff
|
||||
run: pip install ruff
|
||||
|
||||
- name: Lint serverlibrary
|
||||
run: ruff check serverlibrary
|
||||
build:
|
||||
needs: [test-serverlibrary, test-wallpaper-changer, lint-serverlibrary, lint-wallpaper-changer]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: nikolaik/python-nodejs:python3.12-nodejs20
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
ruff check wallpaper_changer serverlibrary
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install ../serverlibrary
|
||||
python -m pip install .
|
||||
|
||||
- name: Build Python package
|
||||
working-directory: wallpaper_changer
|
||||
run: |
|
||||
python -m build
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wallpaper-changer-dist
|
||||
path: wallpaper_changer/dist/
|
||||
Reference in new issue
Block a user