build(CICD): split CICD in 2 files for serverlibrary and wallpaper_changer
This commit is contained in:
1 parent
7a5f062ca8
commit
a6063921e5
3 files changed
+155
-132
No files matched your search
@@ -0,0 +1,51 @@
|
||||
name: Serverlibrary CI
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "serverlibrary/**"
|
||||
- "wallpaper_changer/python/**"
|
||||
- ".gitea/workflows/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- "serverlibrary/**"
|
||||
- "wallpaper_changer/python/**"
|
||||
- ".gitea/workflows/**"
|
||||
|
||||
jobs:
|
||||
test-serverlibrary:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: nikolaik/python-nodejs:python3.12-nodejs20
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install serverlibrary
|
||||
working-directory: serverlibrary
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .
|
||||
|
||||
- name: Run serverlibrary tests
|
||||
working-directory: serverlibrary
|
||||
run: python run_tests.py
|
||||
|
||||
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: python -m pip install ruff
|
||||
|
||||
- name: Lint serverlibrary
|
||||
run: ruff check serverlibrary/src serverlibrary/tests serverlibrary/run_tests.py
|
||||
Reference in new issue
Block a user