File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,16 @@ jobs:
5454 - name : Install dependencies
5555 run : make install-dev
5656
57+ - name : Run tests (fast)
58+ if : github.event_name == 'push'
59+ run : make test
60+
5761 - name : Run tests with coverage
62+ if : github.event_name == 'pull_request' || github.event_name == 'schedule'
5863 run : make test-coverage
5964
6065 - name : Upload coverage to Codecov
66+ if : github.event_name == 'pull_request' || github.event_name == 'schedule'
6167 uses : codecov/codecov-action@v4
6268 with :
6369 file : docker/coverage.xml
@@ -66,16 +72,17 @@ jobs:
6672 fail_ci_if_error : false
6773
6874 - name : Upload coverage reports
75+ if : github.event_name == 'pull_request' || github.event_name == 'schedule'
6976 uses : actions/upload-artifact@v4
70- if : always()
7177 with :
7278 name : coverage-reports-${{ matrix.python-version }}
7379 path : docker/htmlcov/
7480
75- # Security Scan
81+ # Security Scan (only on PRs and scheduled runs)
7682 security :
7783 name : Security Scan
7884 runs-on : ubuntu-latest
85+ if : github.event_name == 'pull_request' || github.event_name == 'schedule'
7986
8087 steps :
8188 - name : Checkout code
@@ -102,10 +109,11 @@ jobs:
102109 safety-report.json
103110 bandit-security.json
104111
105- # Dependency Check
112+ # Dependency Check (only on PRs and scheduled runs)
106113 dependencies :
107114 name : Dependency Check
108115 runs-on : ubuntu-latest
116+ if : github.event_name == 'pull_request' || github.event_name == 'schedule'
109117
110118 steps :
111119 - name : Checkout code
You can’t perform that action at this time.
0 commit comments