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