Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Start setting up GitHub Actions #268

Merged
merged 1 commit into from
Jul 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Test Busy Beaver
on: [pull_request]
jobs:
build-and-test-app:
runs-on: ubuntu-latest
services:
db:
image: postgres:10.3-alpine
env:
POSTGRES_DB: busy-beaver
POSTGRES_USER: bbdev_user
POSTGRES_PASSWORD: bbdev_password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:4.0-alpine

container: python:3.8.1-buster
env:
PYTHONPATH: .
FLASK_APP: /app/busy_beaver/__init__.py
FLASK_ENV: development
DATABASE_URI: postgresql://bbdev_user:bbdev_password@db:5432/busy-beaver
REDIS_URI: redis://redis:6379
OAUTHLIB_INSECURE_TRANSPORT: 1
OAUTHLIB_RELAX_TOKEN_SCOPE: 1
steps:
- uses: actions/checkout@v2
- name: Build the stack
run: make up
- name: Test application
run: make test