-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 831 Bytes
/
ci-code.yml
File metadata and controls
38 lines (32 loc) · 831 Bytes
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
name: Lint, format and test code
on:
pull_request:
branches:
- main
paths:
- api/**
- .github/workflows/ci-code.yml
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.13"
- name: Install dependencies
working-directory: ./api
run: |
make install
make install-dev
- name: Lint
working-directory: ./api
run: make lint-ci
- name: Format
working-directory: ./api
run: make fmt-ci
- name: Test
working-directory: ./api
run: make test