Files
Server-scripts/.gitea/workflows/serverlibrary.yaml
T

50 lines
1.1 KiB
YAML

name: Serverlibrary CI
permissions:
contents: read
on:
push:
paths:
- "serverlibrary/**"
- ".gitea/workflows/**"
pull_request:
paths:
- "serverlibrary/**"
- ".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