Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 9 additions & 7 deletions .github/workflows/api-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:
paths:
- 'api/**'
- '.github/**'
types: [opened, synchronize, reopened, ready_for_review]

defaults:
run:
working-directory: api

jobs:
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: API Unit Tests

services:
postgres:
image: postgres:11.12-alpine
Expand All @@ -24,31 +26,31 @@ jobs:
POSTGRES_DB: postgres
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt

- name: Check Formatting
run: black --check .

- name: Run Tests
env:
DATABASE_URL:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/platform-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Platform Pull Requests

on:
- pull_request
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
run-e2e-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Full E2E tests

Expand Down