fix: activate venv instead of using poetry run #518
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I think we had some issues with our cache and removing it fixed the failing CI.
To delete cache, you can go there. The one that had an issue here was
venv-Linux-...
, the cache for poetry dependencies. We are also caching yarn (node-cache-Linux-yarn-...
) and now poetry with this PR (poetry-cache-...
)This PR is removing the unnecessary installation of pytest via pip (pytest is installed via poetry in setup-python)
This is also improving our CI by caching poetry so that python jobs now take half of the time they use to take:
Before the PR:
![Screenshot 2023-09-07 at 15 30 31](https://private-user-images.githubusercontent.com/58954208/266349871-5ec62e5a-a38f-4bf9-97c3-3b05dd4d51de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MzI0NjcsIm5iZiI6MTcyMTkzMjE2NywicGF0aCI6Ii81ODk1NDIwOC8yNjYzNDk4NzEtNWVjNjJlNWEtYTM4Zi00YmY5LTk3YzMtM2IwNWRkNGQ1MWRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE4MjkyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3MDE3YmJiZTE3YjU5OTI0NDRkNjZiZTAzOGI2ODI0N2Y2NTA1MmE0ZmNmZjVhM2U5ZjEzMWUyODIyNjRmMDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2RlpkCjzuOKkUmVGqegNfZzxG5B0NOpDs-He5_MIBAI)
After the PR:
![Screenshot 2023-09-07 at 15 31 38](https://private-user-images.githubusercontent.com/58954208/266350183-57f60184-17ab-49f5-a59f-a48e89a09821.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MzI0NjcsIm5iZiI6MTcyMTkzMjE2NywicGF0aCI6Ii81ODk1NDIwOC8yNjYzNTAxODMtNTdmNjAxODQtMTdhYi00OWY1LWE1OWYtYTQ4ZTg5YTA5ODIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE4MjkyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhZWM1NDQzMjIxMjQzODliMGUyODdhYTUxMWNlYzZjYTk3YWNkOTcyNzY2MjdkODkyOTc0ODllZDE1MzMzOTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lmFRzMGKbcliFNMmVxnx2cp-OG1SGR2RsCTKpAsEHg8)