contrailcirrus / pycontrails

Python library for modeling contrails and other aviation climate impacts
https://py.contrails.org/
Apache License 2.0
52 stars 15 forks source link

Pass GITHUB_ACTIONS from host when building and testing linux wheels #209

Closed thabbott closed 3 months ago

thabbott commented 3 months ago

Run times for the release workflow have increased significantly since v0.51.2: compare https://github.com/contrailcirrus/pycontrails/actions/runs/9563516040 (1 hour, limited by linux wheels) to https://github.com/contrailcirrus/pycontrails/actions/runs/9411025885 (20 minutes, limited by windows wheels).

This is because the GITHUB_ACTIONS environment variable, which is used to selectively skip tests in test_leo.py that download large imagery files, is not passed from the host to the container used to build and test wheels on linux.

This PR ensures that the GITHUB_ACTIONS environment variable is correctly set when building and testing wheels on all hosts. (See https://cibuildwheel.pypa.io/en/stable/options/#environment-pass.)

Release workflow runtime with this change is similar to v0.51.2: https://github.com/contrailcirrus/pycontrails/actions/runs/9568292058/job/26378142375.

Changes

Internals

Tests

Reviewer

@mlshapiro