added unittest CI/CD workflow
All checks were successful
Python unit tests / unittests (push) Successful in 5s

This commit is contained in:
Louis Heredero 2025-01-24 13:15:28 +01:00
parent 160a79906d
commit c7c36f7717
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
3 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,17 @@
name: Python unit tests
run-name: ${{ gitea.actor }} is running unit tests
on: [push, workflow_dispatch]
jobs:
unittests:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Test with unittest
run: python -m unittest

View File

@ -1,6 +1,6 @@
import unittest
from ex2_tv import startRecordingAt
from src.ex2_tv import startRecordingAt
class MyTestCase(unittest.TestCase):

View File

@ -1,6 +1,6 @@
import unittest
from ex3_cards import tauntScore
from src.ex3_cards import tauntScore
class MyTestCase(unittest.TestCase):