generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 925 Bytes
/
ci_code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Lint, format and test code
on:
workflow_dispatch:
pull_request:
paths:
- app/**
- .github/workflows/ci_code.yml
env:
TERRAGRUNT_VERSION: v0.31.1
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Setup python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: "3.10"
- name: Install dev dependencies
working-directory: ./app
run: make install-dev
- name: Install dependencies
working-directory: ./app
run: make install
- name: Lint
working-directory: ./app
run: make lint-ci
- name: Format
working-directory: ./app
run: make fmt-ci
- name: Test
working-directory: ./app
run: make test