32 lines
646 B
YAML
32 lines
646 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Unit tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
# Runner labels do not guarantee the job's OS or installed tools in Gitea.
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-24.04
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Show Python version
|
|
run: python3 --version
|
|
|
|
- name: Run unit tests
|
|
run: python3 -m unittest discover -s tests -v
|