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

30 lines
663 B
YAML

name: Python tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container:
image: nikolaik/python-nodejs:python3.12-nodejs20
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Create virtual environment and install dependencies
working-directory: wallpaper_changer
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install .
- name: Run tests
working-directory: wallpaper_changer
run: |
. .venv/bin/activate
python tests/run_tests.py