Add .gitea/workflows/test.yml
Some checks failed
Run Controller Tests / test (push) Has been cancelled
Some checks failed
Run Controller Tests / test (push) Has been cancelled
This commit is contained in:
29
.gitea/workflows/test.yml
Normal file
29
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Run Controller Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore: [ main ]
|
||||||
|
pull-request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run:
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install pygame
|
||||||
|
|
||||||
|
- name: Run Unit Tests
|
||||||
|
run:
|
||||||
|
python -m unittest discover tests
|
Reference in New Issue
Block a user