-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (48 loc) · 1.5 KB
/
check.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
43
44
45
46
47
48
49
50
name: check
on:
pull_request:
branches: ['*']
push:
branches: ['*']
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Static Analysis
uses: pre-commit/[email protected]
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Run unit tests
run: python -m pytest tests/ -s -v
synth:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Generate dummy secrets file
run: |
tee -a .openchallenges > /dev/null <<EOT
MARIADB_PASSWORD=dummy
MARIADB_ROOT_PASSWORD=dummy
GIT_HOST_KEY=DUMMY_GIT_HOST_KEY
GIT_PRIVATE_KEY=-----BEGIN OPENSSH PRIVATE KEY-----\nDUMMY_GIT_PRIVATE_KEY\n-----END OPENSSH PRIVATE KEY-----
AWS_LOADER_S3_ACCESS_KEY_ID=DUMMY_S3_ACCESS_KEY
AWS_LOADER_S3_SECRET_ACCESS_KEY=DUMMY_S3_SECRET_KEY
SECURITY_KEY=00000
EOT
- name: Generate cloudformation
uses: youyo/aws-cdk-github-actions@v2
with:
cdk_subcommand: 'synth'
actions_comment: false
debug_log: true
cdk_args: '--context env=dev --output ./cdk.out'