From a8103af866ebbe28b726efdfbe59098004f93e8d Mon Sep 17 00:00:00 2001 From: Sam <61994039+fourthDimensional@users.noreply.github.com> Date: Sat, 31 May 2025 19:25:46 -0500 Subject: [PATCH] Add GitHub Actions workflow for automated testing and setup --- .gitea/workflows/run_tests.yml | 30 ++++++++++++++++++++++++++++++ tests.py | 0 2 files changed, 30 insertions(+) create mode 100644 .gitea/workflows/run_tests.yml create mode 100644 tests.py 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