27 lines
692 B
YAML
27 lines
692 B
YAML
# Run the tests on every push and pull request.
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
- name: Install a virtual display and Tk
|
|
run: sudo apt-get update && sudo apt-get install -y xvfb python3-tk
|
|
- name: Install the development dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install --group dev
|
|
- name: Run the tests
|
|
run: xvfb-run python -m pytest
|