Skip to content

Link goal-related models in admin #17

Link goal-related models in admin

Link goal-related models in admin #17

Workflow file for this run

name: Mutation testing with Cosmic Ray
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgrespass
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/python
- run: |
sed -i 's/DATABASE_URL=*.//' .env
echo "DATABASE_URL=postgresql://postgres:postgrespass@localhost:5432/django_goals" >> .env
- name: Run cosmic ray
run: poetry run bash cr.sh
- name: Store html report
uses: actions/upload-artifact@v4
with:
name: cr-html-${{ github.sha }}
path: cr.html