diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..ff2c165e2 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +/.github/CODEOWNERS @neo4j/drivers +/.github/workflows/ @neo4j/drivers diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 000000000..06a31736b --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,48 @@ +name: Tests + +on: + push: + branches: + - '6.x' + - '*' + pull_request: + branches: + - '6.x' + - '*' + +jobs: + win-unit-tests: + name: Windows Unit Tests + runs-on: windows-latest + strategy: + matrix: + python-version: + - '3.10' + - '3.11' + - '3.12' + - '3.13' + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + + - name: Run unit tests + run: python testkit/unittests.py + + gha-conclusion: + name: GHA Conclusion + needs: win-unit-tests + runs-on: ubuntu-latest + steps: + - name: Signal failure + if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }} + run: | + echo "Some workflows have failed!" + exit 1 + - name: Signal success + if: ${{ !cancelled() && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'failure') }} + run: echo "All done!"