-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (29 loc) · 1.04 KB
/
ci-test.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
name: ci-test
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
ci-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # get all branches so that we can check out main to compare lint scores
- name: Run make ci-build in dev container
uses: devcontainers/[email protected]
with:
# TODO - cache dev container image
push: never
env: |
GITHUB_BASE_REF
runCmd: |
echo -e "Running ci-build for ref:$GITHUB_BASE_REF\n\n"
make install-requirements
echo -e "\n\n------------------------------ version --------------------------------------------------\n\n"
python --version
pip freeze
echo -e "\n\n------------------------------ lint --------------------------------------------------\n\n"
./scripts/ci-lint.sh
echo -e "\n\n------------------------------ test --------------------------------------------------\n\n"
make test