Add CI test workflow
This commit is contained in:
parent
d41af519e8
commit
c787e55ef3
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/test.yml
Normal file
26
.forgejo/workflows/test.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- testing
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: python:3.12-slim
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
- name: Django system check
|
||||||
|
run: python manage.py check
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: python manage.py test
|
||||||
Loading…
Add table
Reference in a new issue