30 lines
641 B
YAML
30 lines
641 B
YAML
name: Python tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: python:3.12-bookworm
|
|
|
|
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
|