Added automatic unit testing.
This commit is contained in:
33
.gitea/workflow/run-unit-tests.yml
Normal file
33
.gitea/workflow/run-unit-tests.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
unit-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.12'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
./tests.py
|
||||||
|
|
||||||
|
# AI: generated... check validity
|
||||||
|
# - name: Upload test results
|
||||||
|
# if: always()
|
||||||
|
# uses: actions/upload-artifact@v2
|
||||||
|
# with:
|
||||||
|
# name: test-results
|
||||||
|
# path: tests/test_results.xml
|
||||||
Reference in New Issue
Block a user