From 7987c0272273b34a7bb2fd101be13862e5867b3b Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Mon, 29 Jan 2024 14:35:41 +0100 Subject: [PATCH] Added gihub action for running tests (trac plugin + noshadows script) --- .github/workflows/tests.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a4f86c9 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,38 @@ +name: Tests + +on: + pull_request: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + tracdjangoplugin: + runs-on: ubuntu-latest + container: + image: python:2.7.18-buster + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install requirements + run: pip install -r requirements.txt + - name: Run tests + run: python -m django test tracdjangoplugin.tests + env: + DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests + + noshadows: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - run: pip install tinycss2 + - run: python noshadows.py --tests