Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,20 @@ jobs:
run: make lint
- name: Tests
run: make test-coverage
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. This will also run the integration tests 🤣


integration-test:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason for depth 2? The default is 1.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was copy and paste from the old python-integration.yml file. I did however check on who introduced it in the first place... and it turns out it was you at this commit :)

Shall I remove it? I don't see a reason either?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep 1 is enough :D

- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libkrb5-dev # for kerberos
- name: Install
run: make install
- name: Run integration tests
run: make test-integration
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we want to do this.

L68's test-coverage runs both the unit tests and integrations tests
This line here runs the integration tests again.

I think we'd want to get rid of one OR have one run unit tests and another run integration tests.

Looking at both github actions. python-ci runs the matrix for python v3.9-3.12 whereas python-integration only runs for the default python version.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice catch. Personally, I like the idea of having them stay separate, so they can run in parallel. I pushed a change separating them while still running the full Python version matrix for both unit and integration tests with coverage. What do you think?

- name: Show debug logs
if: ${{ failure() }}
run: docker compose -f dev/docker-compose.yml logs
61 changes: 0 additions & 61 deletions .github/workflows/python-integration.yml

This file was deleted.