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, CI: Temporarily disable pytest's caching in Pyodide job #743

Merged
merged 1 commit into from
May 29, 2024

Conversation

agriyakhetarpal
Copy link
Collaborator

Description

The pytest test suite tries to generate additional bytecode files after its completion, and it then tries to save them to a filesystem that is read-only for unexplored reasons. Since this workflow runs only in a temporary CI job, the .pyc file generation can be disabled with the internal pytest plugin using -p no:cacheprovider.

Some other fixes are included as well:

  1. The Pydantic upper-pin, i.e., pydantic<2 is not needed anymore
  2. Skipping this job on forks
  3. A more readable condition for the Anaconda index upload step

The workflow is passing on my fork, here: https://github.com/agriyakhetarpal/pywt/actions/runs/9287344567/job/25556120583

What issue does this PR reference?

Closes gh-742. For additional context: this PR fixes an unrelated error which was noted in #742 (comment), and the CI job is already picking up the latest Emscripten version that is coupled with pyodide-build using the value retrieved by the $(pyodide config get emscripten_version) command.

The pytest test suite is trying to generate additional
files and it tries to save them to a filesystem that is
for some reason read-only. Since this workflow runs
only in a temporary CI job, the `.pyc` file generation
can be disabled.

Some other fixes are included as well:

1. pydantic<2 not needed anymore
2. Skip the job on forks
3. More readable condition for Anaconda upload
step
@agriyakhetarpal agriyakhetarpal added maintenance CI Continuous integration labels May 29, 2024
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the quick fix @agriyakhetarpal!

@rgommers rgommers merged commit fa079a5 into PyWavelets:main May 29, 2024
16 checks passed
@rgommers rgommers added this to the v1.7.0 milestone May 29, 2024
@agriyakhetarpal agriyakhetarpal deleted the fix/pyodide-0.26.0 branch May 29, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Start building WASM wheels against newer Pyodide (version 0.26.0)
2 participants