Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cam/CI #492

Closed
wants to merge 1 commit into from
Closed
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
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
Loading