chore(gh-actions): add tests

This commit is contained in:
Kristofers Solo 2024-01-09 18:07:00 +02:00
parent c3443b5385
commit 24e4421b7e
3 changed files with 30 additions and 1 deletions

23
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Test with pytest
run: |
pytest

View File

@ -8,7 +8,7 @@ version = "0.1.0"
description = "Tetris game"
authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }]
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.10"
license = { file = "LICENSE" }
dependencies = [
"attrs==23.1.0",

6
tests/test_blank.py Normal file
View File

@ -0,0 +1,6 @@
import unittest
class TestBlank(unittest.TestCase):
def test(self) -> None:
pass