File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 55 branches : [main]
66 pull_request :
77 workflow_dispatch :
8+ schedule :
9+ - cron : ' 5 1 * * *' # every day at 01:05
810
911env :
1012 FORCE_COLOR : " 1"
5052 - name : Upload coverage report
5153 uses : codecov/codecov-action@v5
5254
55+ - name : Run tests with dev dependencies
56+ if : ${{ github.event_name == 'schedule' && matrix.pyv != '3.9' }}
57+ run : nox -s tests-${{ matrix.pyv }} -- --slow --cov-report=xml
58+ env :
59+ TEST_DEV_DEPS : " 1"
60+
5361 - name : Build package
5462 run : nox -s build
5563
6169 - uses : re-actors/alls-green@release/v1
6270 with :
6371 jobs : ${{ toJSON(needs) }}
72+
73+ notify :
74+ if : github.ref == 'refs/heads/main' && failure()
75+ needs : [tests]
76+ runs-on : ubuntu-latest
77+ steps :
78+ - name : Slack Notification
79+ 80+ env :
81+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
82+ SLACK_COLOR : ${{ job.status }}
83+ SLACK_MESSAGE : ' scmrepo scheduled test failed on main :boom:'
84+ SLACK_TITLE : CI Status
85+ SLACK_USERNAME : scmrepo-ci
Original file line number Diff line number Diff line change 1616
1717@nox .session (python = python_versions )
1818def tests (session : nox .Session ) -> None :
19- session .install (".[tests]" )
19+ deps = [".[tests]" ]
20+ if os .getenv ("TEST_DEV_DEPS" ) == "1" :
21+ deps .extend (["dulwich @ git+https://github.com/jelmer/dulwich.git" ])
22+ session .install (* deps )
2023 session .run (
2124 "pytest" ,
2225 "--cov" ,
You can’t perform that action at this time.
0 commit comments