Skip to content

Commit e728159

Browse files
committed
Add GitHub actions: windows unit tests
1 parent ed1494a commit e728159

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.github/CODEOWNERS @neo4j/drivers
2+
/.github/workflows/ @neo4j/drivers

.github/workflows/tests.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '6.x'
7+
- '*'
8+
pull_request:
9+
branches:
10+
- '6.x'
11+
- '*'
12+
13+
jobs:
14+
win-unit-tests:
15+
name: Windows Unit Tests
16+
runs-on: windows-latest
17+
strategy:
18+
matrix:
19+
python-version:
20+
- '3.10'
21+
- '3.11'
22+
- '3.12'
23+
- '3.13'
24+
steps:
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
cache: 'pip'
32+
33+
- name: Run unit tests
34+
run: python testkit/unittests.py
35+
36+
gha-conclusion:
37+
name: GHA Conclusion
38+
needs: win-unit-tests
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Signal failure
42+
if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }}
43+
run: |
44+
echo "Some workflows have failed!"
45+
exit 1
46+
- name: Signal success
47+
if: ${{ !cancelled() && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'failure') }}
48+
run: echo "All done!"

0 commit comments

Comments
 (0)