Skip to content

Commit

Permalink
Added gihub action for running tests (trac plugin + noshadows script)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed Jan 29, 2024
1 parent d72a5ca commit 7987c02
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7987c02

Please sign in to comment.