Skip to content

Implement Github test action. #5

Implement Github test action.

Implement Github test action. #5

Workflow file for this run

name: tests
on:
push:
pull_request:
# concurrency:
# group: check-${{ github.ref }}
# cancel-in-progress: true
jobs:
test:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: |
3.8
3.9
3.10
3.11
3.12
pypy3.9
pypy3.10
- name: Install gi
run: |
sudo dd of=/etc/dpkg/dpkg.cfg.d/docker-apt-speedup <<< force-unsafe-io
sudo apt install libgirepository1.0-dev gir1.2-glib-2.0
- id: cache-pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}
save-always: true
- name: Install tox
run: python3.12 -m pip install tox
- uses: actions/checkout@v4
- name: Run test suite
run: tox