-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (54 loc) · 1.4 KB
/
main.yaml
File metadata and controls
64 lines (54 loc) · 1.4 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
on:
push:
branches:
- main
pull_request:
merge_group:
schedule:
- cron: '0 0 * * *' # Every day at midnight UTC
# allow manual triggering with a given environment
workflow_dispatch:
inputs:
ENVIRONMENT:
required: true
type: environment
name: CI
jobs:
test:
environment:
name: ${{ vars.ENVIRONMENT }}
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Install dependencies with multirepo
uses: chipflow/pdm-multirepo@v4
- name: Run tests
run: pdm run test
- name: Run lints
run: pdm run lint
- name: Run doc tests
run: pdm run test-docs
license:
environment:
name: ${{ vars.ENVIRONMENT}}
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check source code licenses
run: ./tools/license_check.sh
test-submit:
uses: ./.github/workflows/test-examples.yml
with:
CHIPFLOW_API_ORIGIN: ${{ vars.CHIPFLOW_API_ORIGIN }}
CHIPFLOW_BACKEND_VERSION: ${{ vars.CHIPFLOW_BACKEND_VERSION }}
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
secrets:
CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}}