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