Skip to content

Commit

Permalink
Fix matrix generation and integration_tests_without_db.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Aug 25, 2023
1 parent c1d69b3 commit e076093
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration_tests_without_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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
strategy:
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:
Expand Down
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e076093

Please sign in to comment.