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:47:22 +01:00
|
|
|
runs-on: ubuntu-latest
|
2025-01-24 13:15:28 +01:00
|
|
|
steps:
|
2025-01-24 13:59:41 +01:00
|
|
|
- run: echo "OS=${{ runner.os }} platform=${{ runner.platform }} arch=${{ runner.architecture }}"
|
2025-01-24 13:15:28 +01:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v5
|
2025-01-24 13:52:25 +01:00
|
|
|
with:
|
|
|
|
python-version: '3.13.1'
|
2025-01-24 13:49:27 +01:00
|
|
|
- name: Installing dependencies
|
|
|
|
run: python -m pip install unittest
|
2025-01-24 13:17:19 +01:00
|
|
|
- name: Test with unittest
|
2025-01-24 13:49:27 +01:00
|
|
|
run: python -m unittest
|