Skip to content

Commit 768f826

Browse files
authored
Remove docker build GitHub action (#144)
* remove github build docker action + run ci tests on push and pull request * run coverage steps only on pull requests
1 parent e00bcc2 commit 768f826

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Python
22

3-
on:
4-
pull_request:
3+
on: [push, pull_request]
54

65
permissions:
76
contents: read
@@ -26,13 +25,15 @@ jobs:
2625
poetry run pytest --junitxml=/tmp/pytest.xml --cov-report=term-missing:skip-covered --cov=descope tests/ --cov-report=xml:/tmp/cov.xml
2726
2827
- name: Post Pytest coverage comment
28+
if: ${{ github.event_name == 'pull_request' }}
2929
id: coverageComment
3030
uses: MishaKav/pytest-coverage-comment@main
3131
with:
3232
pytest-xml-coverage-path: /tmp/cov.xml
3333
create-new-comment: false
3434

3535
- name: Coverage
36+
if: ${{ github.event_name == 'pull_request' }}
3637
run: |
3738
echo "Coverage Percantage - ${{ steps.coverageComment.outputs.coverage }}"
3839
echo "Coverage Color - ${{ steps.coverageComment.outputs.color }}"

.github/workflows/docker.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)