added unittest CI/CD workflow
Some checks failed
Python unit tests / unittests (push) Failing after 31s
Some checks failed
Python unit tests / unittests (push) Failing after 31s
This commit is contained in:
parent
160a79906d
commit
eb532f50da
18
.gitea/workflows/tests.yaml
Normal file
18
.gitea/workflows/tests.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Python unit tests
|
||||||
|
run-name: ${{ gitea.actor }} is running unit tests
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
unittests:
|
||||||
|
runs-on: ubuntu-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 pytest
|
||||||
|
run: |
|
||||||
|
pip install unittest
|
||||||
|
python -m unittest
|
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from ex2_tv import startRecordingAt
|
from src.ex2_tv import startRecordingAt
|
||||||
|
|
||||||
|
|
||||||
class MyTestCase(unittest.TestCase):
|
class MyTestCase(unittest.TestCase):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from ex3_cards import tauntScore
|
from src.ex3_cards import tauntScore
|
||||||
|
|
||||||
|
|
||||||
class MyTestCase(unittest.TestCase):
|
class MyTestCase(unittest.TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user