Skip to content

Commit 0f20258

Browse files
committed
ci: test using dev deps
1 parent 8bf700c commit 0f20258

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [main]
66
pull_request:
77
workflow_dispatch:
8+
schedule:
9+
- cron: '5 1 * * *' # every day at 01:05
810

911
env:
1012
FORCE_COLOR: "1"
@@ -50,6 +52,12 @@ jobs:
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

@@ -61,3 +69,17 @@ jobs:
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+
uses: rtCamp/[email protected]
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

noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
@nox.session(python=python_versions)
1818
def 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",

0 commit comments

Comments
 (0)