Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪 Fix Windows pytest CI runs #1153

Merged
merged 4 commits into from
Apr 11, 2024
Merged

🧪 Fix Windows pytest CI runs #1153

merged 4 commits into from
Apr 11, 2024

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Mar 25, 2024

In #1067 I added coverage uploads.
@PhilipPartsch has uncovered an issue with this; it appears at least in Windows if pytest fails it still progresses to the next command coverage xml and then if this runs ok it doesn't mark the job step as failing 🤦

In #1067 I added coverage uploads.
@PhilipPartsch has uncovered an issue with this; it appears at least in Windows if `pytest` fails it still progresses to the next command `coverage xml` and then if this runs ok it doesn't mark the job step as failing
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.92%. Comparing base (0f71ecd) to head (fe32850).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1153   +/-   ##
=======================================
  Coverage   85.92%   85.92%           
=======================================
  Files          56       56           
  Lines        6536     6536           
=======================================
  Hits         5616     5616           
  Misses        920      920           
Flag Coverage Δ
pytests 85.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrisjsewell
Copy link
Member Author

Now I just need to fix the failures 😅

@PhilipPartsch
Copy link
Contributor

Now I just need to fix the failures 😅

I have the fixes available at my privet PC at home. I can commit them in 12 hours.

@chrisjsewell
Copy link
Member Author

I have the fixes available at my privet PC at home. I can commit them in 12 hours.

thanks!

@PhilipPartsch
Copy link
Contributor

I have the fixes available at my privet PC at home. I can commit them in 12 hours.

thanks!

My fixes are here

@chrisjsewell
Copy link
Member Author

chrisjsewell commented Mar 25, 2024

@PhilipPartsch for future knowledge, this is the root problem: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference

cmd: There doesn't seem to be a way to fully opt into fail-fast behavior other than writing your script to check each error code and respond accordingly. Because we can't actually provide that behavior by default, you need to write this behavior into your script.

Windows being window 😅

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@chrisjsewell chrisjsewell changed the title Fix pytest CI runs 🧪 Fix pytest CI runs Apr 11, 2024
@chrisjsewell chrisjsewell changed the title 🧪 Fix pytest CI runs 🧪 Fix Windows pytest CI runs Apr 11, 2024
@chrisjsewell chrisjsewell merged commit 90bae4a into master Apr 11, 2024
18 checks passed
@chrisjsewell chrisjsewell deleted the chrisjsewell-patch-1 branch April 11, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants