2025-01-24 13:15:28 +01:00
|
|
|
name: Python unit tests
|
|
|
|
run-name: ${{ gitea.actor }} is running unit tests
|
2025-01-24 13:32:23 +01:00
|
|
|
on: [push, workflow_dispatch]
|
2025-01-24 13:15:28 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
unittests:
|
2025-01-24 13:22:15 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2025-01-24 13:15:28 +01:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
2025-01-24 13:22:15 +01:00
|
|
|
python-version: '3.13'
|
2025-01-24 13:32:23 +01:00
|
|
|
cache: 'pip'
|
2025-01-24 13:17:19 +01:00
|
|
|
- name: Test with unittest
|
2025-01-24 13:15:28 +01:00
|
|
|
run: |
|
|
|
|
pip install unittest
|
|
|
|
python -m unittest
|