diff --git a/.github/workflows/integration_tests_without_db.yaml b/.github/workflows/integration_tests_without_db.yaml index 4de8c2bc..d952f957 100644 --- a/.github/workflows/integration_tests_without_db.yaml +++ b/.github/workflows/integration_tests_without_db.yaml @@ -21,7 +21,7 @@ jobs: name: "Generate list of integration tests without DB" run: poetry run nox -s generate_integration_tests_without_db_matrix > "$GITHUB_OUTPUT" outputs: - test_path: ${{ toJSON(steps.generate_integration_tests_without_db.outputs.config) }} + test_path: ${{ toJSON(steps.generate_integration_tests_without_db.outputs.matrix) }} run_test: needs: prepare_matrix @@ -29,7 +29,7 @@ jobs: fail-fast: false matrix: python-version: [ 3.8 ] - config: ${{ fromJSON(needs.prepare_matrix.outputs.test_path) }} + test_path: ${{ fromJSON(needs.prepare_matrix.outputs.test_path) }} runs-on: ubuntu-latest name: Run ${{ matrix.test-path.name }} steps: diff --git a/noxfile.py b/noxfile.py index cb40bce8..16cb7f83 100644 --- a/noxfile.py +++ b/noxfile.py @@ -47,7 +47,9 @@ def generate_integration_tests_without_db_matrix(session: Session): without_db_test_directory = INTEGRATION_TEST_DIRECTORY / "without_db" test_files = without_db_test_directory.rglob("test_*.py") output = [_generate_test_matrix_entry(test_file) for test_file in test_files] - print(json.dumps(output)) + json_str = json.dumps(output) + github_output_definition = f"matrix={json_str}" + print(github_output_definition) @nox.session(python=False)