From a89fe1ebede31a54531ff0d3bedcacc2600d5221 Mon Sep 17 00:00:00 2001 From: Graham Wright Date: Tue, 6 Aug 2024 20:06:47 -0400 Subject: [PATCH] First attempt at GHA pytest. --- .github/workflows/test_application.yaml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test_application.yaml diff --git a/.github/workflows/test_application.yaml b/.github/workflows/test_application.yaml new file mode 100644 index 0000000..af7f57d --- /dev/null +++ b/.github/workflows/test_application.yaml @@ -0,0 +1,29 @@ +# https://medium.com/marionete/using-github-actions-to-help-review-pull-requests-using-unit-tests-and-code-coverage-72bde49ed3a2 +name: Run Test Suite + +on: [push] + +env: + MIN_COVERAGE_REQUIRED: 75 + +jobs: + run-test-suite: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python 3.8.10 + uses: actions/setup-python@v5 + with: + python-version: '3.8.10' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + #pip install -r requirements.txt + pip install pytest + + - name: Run Pytest tests + run: pytest -rA \ No newline at end of file