Skip to content

Commit

Permalink
TestKit debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude committed Dec 26, 2023
1 parent a8ac8aa commit 1259a1f
Showing 1 changed file with 45 additions and 44 deletions.
89 changes: 45 additions & 44 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,54 @@ name: Tests
on:
push:
branches:
- master
- testkit-debug
pull_request:
branches:
- master
jobs:
tests:
name: Linting and Testing
runs-on: "ubuntu-latest"
strategy:
matrix:
rust-version: ["1.65", "stable"]
steps:
- name: Pull Neo4j Docker Image
run: docker pull neo4j:5.6-enterprise
- name: Start Neo4j
run: docker run
-d --rm --name neo4j
-p 7474:7474 -p 7687:7687
-e NEO4J_AUTH=neo4j/pass
-e NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
-e NEO4J_dbms_security_auth__minimum__password__length=1
neo4j:5.6-enterprise &
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
components: clippy
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: cargo check
env:
RUSTFLAGS: -D warnings
run: cargo check
- name: cargo fmt
run: cargo +nightly fmt --all -- --check
- name: tests
env:
TEST_NEO4J_SCHEME: neo4j
TEST_NEO4J_HOST: localhost
TEST_NEO4J_PORT: 7687
TEST_NEO4J_USER: neo4j
TEST_NEO4J_PASS: pass
TEST_NEO4J_EDITION: enterprise
TEST_NEO4J_VERSION: 5.6
run: cargo test
# tests:
# name: Linting and Testing
# runs-on: "ubuntu-latest"
# strategy:
# matrix:
# rust-version: ["1.65", "stable"]
# steps:
# - name: Pull Neo4j Docker Image
# run: docker pull neo4j:5.6-enterprise
# - name: Start Neo4j
# run: docker run
# -d --rm --name neo4j
# -p 7474:7474 -p 7687:7687
# -e NEO4J_AUTH=neo4j/pass
# -e NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
# -e NEO4J_dbms_security_auth__minimum__password__length=1
# neo4j:5.6-enterprise &
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@v1
# with:
# toolchain: ${{ matrix.rust-version }}
# components: clippy
# - uses: dtolnay/rust-toolchain@nightly
# with:
# components: rustfmt
# - name: cargo check
# env:
# RUSTFLAGS: -D warnings
# run: cargo check
# - name: cargo fmt
# run: cargo +nightly fmt --all -- --check
# - name: tests
# env:
# TEST_NEO4J_SCHEME: neo4j
# TEST_NEO4J_HOST: localhost
# TEST_NEO4J_PORT: 7687
# TEST_NEO4J_USER: neo4j
# TEST_NEO4J_PASS: pass
# TEST_NEO4J_EDITION: enterprise
# TEST_NEO4J_VERSION: 5.6
# run: cargo test
testkit:
needs: [tests]
# needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout driver
Expand All @@ -72,12 +72,13 @@ jobs:
# Runs a single command using the runners shell
- name: Run TestKit
env:
# to learn what these variables do, see https://github.com/neo4j-drivers/testkit
TEST_DRIVER_NAME: rust
TEST_DRIVER_REPO: ${{ github.workspace }}/driver
TEST_RUN_ALL_TESTS: "true"
TEST_DEBUG_REQRES: "1"
run: |
cd testkit
# everything from --run-only-selected is to reduce the number of tests run in this
# demonstation setup. In a real setup, you most likely don't want this.
python3 main.py --tests TESTKIT_TESTS STUB_TESTS TLS_TESTS
--run-only-selected tests.stub.routing.test_routing_v4x4.RoutingV4x4.test_should_request_rt_from_all_initial_routers_until_successful_on_authorization_expired

0 comments on commit 1259a1f

Please sign in to comment.