Skip to content

Commit

Permalink
Split CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Mar 21, 2024
1 parent 2afabff commit 6f1e95d
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 12 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/bdd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: BDD

on:
pull_request:
merge_group:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.9"

- uses: actions/setup-node@v4
with:
node-version: 18

- uses: browser-actions/setup-chrome@v1

- name: Create a .env file
run: cp .env.ci .env

- name: Build images
run: make build

- name: Run containers
run: make up-detatched

- name: Install React app
run: npm ci

- name: Collect static
run: make collectstatic

- name: Run BDD tests
run: make bdd

- name: Docker compose down
run: docker compose down
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: FFT CI
name: Code formatting and linting

on:
pull_request:
Expand All @@ -20,7 +20,7 @@ jobs:
node-version: 18

- uses: browser-actions/setup-chrome@v1

- name: Create a .env file
run: cp .env.ci .env

Expand All @@ -41,15 +41,6 @@ jobs:

- name: Run isort
run: make isort-check

- name: Run black
run: make black-check

- name: Run tests
run: make pytest

- name: Run BDD tests
run: make bdd

- name: Docker compose down
run: docker compose down
43 changes: 43 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Pytest

on:
pull_request:
merge_group:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.9"

- uses: actions/setup-node@v4
with:
node-version: 18

- uses: browser-actions/setup-chrome@v1

- name: Create a .env file
run: cp .env.ci .env

- name: Build images
run: make build

- name: Run containers
run: make up-detatched

- name: Install React app
run: npm ci

- name: Collect static
run: make collectstatic

- name: Run tests
run: make pytest

- name: Docker compose down
run: docker compose down

0 comments on commit 6f1e95d

Please sign in to comment.