forked from NCI-GDC/gdcdictionary
-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (41 loc) · 1.43 KB
/
ci.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
# push will run on every pushed commit to any branch (so this will rerun the tests
# once a branch gets merged to main in addition to any new commits on any branch)
on: push
name: CI
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
Security:
name: Security Pipeline
uses: uc-cdis/.github/.github/workflows/securitypipeline.yaml@master
with:
python-poetry: 'true'
secrets: inherit
UnitTest:
name: Python Unit Test with Postgres
uses: uc-cdis/.github/.github/workflows/python_unit_test.yaml@master
with:
python-version: '3.9'
use-cache: true
# this creates linter settings and uploads to an artifact so the configs can be pulled and used across jobs
LintConfig:
name: Get Lint Config
uses: uc-cdis/.github/.github/workflows/lint-create-config.yaml@master
with:
python-module-name: "gen3Dictionary"
RequiredLint:
name: Run Required Linters
needs: [ LintConfig ]
uses: uc-cdis/.github/.github/workflows/required_lint_check.yaml@master
with:
python-version: '3.9'
use-cache: true
InformationalLint:
name: Run Informational Linters
needs: [ LintConfig ] #TODO Add UnitTest
if: github.ref != 'refs/heads/main'
uses: uc-cdis/.github/.github/workflows/optional_lint_check.yaml@master
with:
python-version: '3.9'
use-cache: true