c3lf-system-3/.forgejo/workflows/test.yml

29 lines
786 B
YAML
Raw Normal View History

2024-12-05 01:31:06 +01:00
name: Test
on:
pull_request:
2024-11-17 21:53:12 +01:00
push:
jobs:
test:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache-dependency-path: '**/requirements.dev.txt'
- name: Install dependencies
working-directory: core
run: pip3 install -r requirements.dev.txt
2024-12-05 01:31:06 +01:00
- name: Run django tests with coverage
working-directory: core
2024-12-05 01:31:06 +01:00
run: coverage run manage.py test
- name: Run integration tests with coverage
working-directory: core
run: python3 integration_tests/main.py
- name: Evaluate coverage
working-directory: core
run: coverage report