diff --git a/.gitea/workflows/run_tests.yml b/.gitea/workflows/run_tests.yml new file mode 100644 index 0000000..7b08610 --- /dev/null +++ b/.gitea/workflows/run_tests.yml @@ -0,0 +1,30 @@ +name: Build Simulation and Test +on: + push: + branches: + - master + +jobs: + tests: + name: Run All Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" + + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" + + - name: Install the project + run: uv sync --locked --all-extras --dev + + - name: Run tests + run: uv run pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html \ No newline at end of file diff --git a/tests.py b/tests.py new file mode 100644 index 0000000..e69de29