File tree Expand file tree Collapse file tree 3 files changed +8
-21
lines changed
Expand file tree Collapse file tree 3 files changed +8
-21
lines changed Original file line number Diff line number Diff line change 11name : Build and Test Python
22
3- on :
4- workflow_call :
5- inputs :
6- coverageComment :
7- description : " Whether to add a comment on test coverage, default is false"
8- required : false
9- type : boolean
10- default : false # disabled for now
3+ on : [workflow_call]
114
125jobs :
136 build-python :
@@ -37,14 +30,12 @@ jobs:
3730 - name : pytest + coverage
3831 run : |
3932 set -o pipefail
40- poetry run pytest --junitxml=pytest.xml -- cov-report=term-missing:skip-covered --cov=beaker | tee pytest-coverage.txt
33+ poetry run pytest --cov-report xml --cov=beaker
4134
42- - name : pytest coverage comment
43- if : inputs.coverageComment
44- uses : MishaKav/pytest-coverage-comment@main
35+ - uses : codecov/codecov-action@v3
4536 with :
46- pytest-coverage-path : ./pytest- coverage.txt
47- junitxml-path : ./pytest.xml
37+ files : ./coverage.xml
38+ verbose : true
4839
4940 - name : stop sandbox
5041 run : docker compose down
Original file line number Diff line number Diff line change 7474 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7575
7676 - name : Create Continuous Deployment - Beta (non-prod)
77- if : steps.get_branch.outputs.branch == 'master' && inputs.production_release
77+ if : steps.get_branch.outputs.branch == 'master' && ! inputs.production_release
7878 run : |
7979 poetry run semantic-release \
8080 -v DEBUG \
Original file line number Diff line number Diff line change 11name : Pull Request and master validation
22
3- on :
4- pull_request :
5- push :
6- branches :
7- - master
3+ on : [pull_request]
84
95jobs :
106 check :
1410 build :
1511 name : Build and Test Python
1612 needs : check
17- uses : ./.github/workflows/build-python.yaml
13+ uses : ./.github/workflows/build-python.yaml
You can’t perform that action at this time.
0 commit comments