diff --git a/.coverage b/.coverage new file mode 100644 index 0000000..3c5b29f Binary files /dev/null and b/.coverage differ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8f402ba --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: + - development + pull_request: + branches: + - development + +jobs: + test: + runs-on: ubuntu-latest + + steps: + # Checkout the code + - name: Checkout code + uses: actions/checkout@v2 + + # Set up Python environment + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + + # Install dependencies + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + + # Run the tests + - name: Run tests with pytest + run: | + pytest --maxfail=5 --disable-warnings + diff --git a/.vscode/settings.json b/.vscode/settings.json index 457f44d..be44800 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,8 @@ { - "python.analysis.typeCheckingMode": "basic" + "python.analysis.typeCheckingMode": "basic", + "python.testing.pytestArgs": [ + "." + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b48ba42..5793cf1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,18 @@ apsw==3.46.1.0 black==24.8.0 click==8.1.7 +exceptiongroup==1.2.2 flake8==7.1.1 +iniconfig==2.0.0 mccabe==0.7.0 mypy-extensions==1.0.0 packaging==24.1 pathspec==0.12.1 platformdirs==4.3.6 +pluggy==1.5.0 pycodestyle==2.12.1 pyflakes==3.2.0 +pytest==8.3.3 sh==2.0.7 tomli==2.0.2 typing_extensions==4.12.2 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_start.py b/tests/test_start.py new file mode 100644 index 0000000..d3029da --- /dev/null +++ b/tests/test_start.py @@ -0,0 +1,5 @@ +# tests/test_example.py + + +def test_example(): + assert 1 + 1 == 2