Skip to content

Run GH Action on pull requests too #27

Run GH Action on pull requests too

Run GH Action on pull requests too #27

Workflow file for this run

on:
push:
pull_request:
name: pytest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up .env
run: cp .env.sample .env
- name: Build and run containers
run: DOCKER_BUILDKIT=1 docker-compose up -d backend db
- name: Check running containers
run: docker-compose ps -a
- name: Test with pytest
run: docker-compose exec -T backend python -m pytest 2>&1 > pytest_log.txt
- name: Show pytest output
if: always()
run: cat pytest_log.txt