TST: Remaining GitHub Actions actions
See original GitHub issueDescription
Remaining things to port from .travis.yml
:
- ~Caching~ with
ccache
and.hypothesis
. (.hypothesis
caching PR opened at #11161, @saimn is interested to look at the rest when he gets the chance). UPDATE: Haven’t seen a real need for caching so far.- Formal documentation at https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows (there is a 5 GB hard limit)
- There is a blog about using ccache in Actions that maybe we can try.
- ~Do we want to start caching pip dependencies too?~ See https://github.com/actions/cache/blob/main/examples.md#python---pip (The answer is “no” according to https://github.com/astropy/astropy/issues/11038#issuecomment-786770402 .)
-
pytest
conditions in test modules usingTRAVIS
env var. See #11128 - ~Slack notification~ (both on success and failure) for cron job. (@saimn tried something but it didn’t work, @Cadair has a cunning plan at https://github.com/astropy/astropy/issues/11038#issuecomment-743229649.) UPDATE: Nothing is happening on this front and no one has asked for it lately.
- Cron:
- Big-endian s390x architecture with apt (
arch: s390x
,ASTROPY_USE_SYSTEM_ALL=1
) (@astrofrog opened #11045 ) - ARM64 architecture with apt (
arch: arm64
,ASTROPY_USE_SYSTEM_ALL=1
) (@astrofrog opened #11045 )
- Big-endian s390x architecture with apt (
- Finally, delete
.travis.yml
. (@astrofrog opened #11045 )
From .circleci/config.yml
:
- 32-bit and parallel (custom
astropy.cfg
, Python 3.7-n=4 --durations=50
, Python 3.8py38-test-double
). See #11043 image-tests-mpl302
(@Cadair says no need to port)image-tests-mpl310
(@Cadair says no need to port)image-tests-mpldev
(@Cadair says no need to port)
Things already in Actions we need to fix:
- Allow remote data job to fail. See #11036
- Separate cron jobs into daily and weekly. See #11036
- See if we can add
--open-files
back to a newer job in future PR. See #11037 -
codecov
uploads report fine but not reporting back to PR. How to fix? ~Try codecov/codecov-action#84 and see?~ Looks like a a bug on their side that is now fixed. - Do we still need branch filters? I guess there is no need for now but we can revisit if we change our minds.
- Fix numpy-dev/remote data job failures. ~See #11042~ (Went away on its own when numpy-dev wheel updated.)
- Fix cron job failures. (Might be the same problem as numpy-dev/remote data job above, ~so should wait until #11042 is merged first~ yes it was.)
- Do we need to roll our own
[ci skip]
? Failed attempts at #11044 and #11129, maybe https://github.com/astropy/astropy/issues/11038#issuecomment-739075305 . See #11168. And now GitHub supports it, so also see #11316 - Find a way to auto-cancel Actions, see https://github.com/astropy/astropy/issues/11038#issuecomment-727070545 . See #11168
Additional ideas:
- Can we tell
ci_workflows.yml
to run Actions on the PR fork instead of here, but report back the status to the PR anyway? The astropy version reported will be wrong due to lack of tags on the fork and if some jobs require special tokens, they will not work. (@saimn will investigate and he actually meant the opposite, see #11054)- ~Blocked by astropy/pytest-astropy-header#31~
Additional context
I milestoned this issue because ideally we should sort everything out by 4.3 release.
See #10388 for more info (e.g., pros, cons, related links).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:25 (25 by maintainers)
Top Results From Across the Web
Usage limits, billing, and administration - GitHub Docs
There are usage limits for GitHub Actions workflows. Usage charges apply to repositories that go beyond the amount of free minutes and storage...
Read more >Re-running workflows and jobs - GitHub Docs
Under your repository name, click Actions. Actions tab in the main repository navigation. In the left sidebar, click the workflow you want to...
Read more >Viewing your GitHub Actions usage
Viewing GitHub Actions usage for your personal account · In the upper-right corner of any page, click your profile photo, then click Settings....
Read more >Understanding GitHub Actions
GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, and deployment pipeline.
Read more >Viewing job execution time - GitHub Docs
On GitHub.com, navigate to the main page of the repository. · Under your repository name, click Actions. · In the left sidebar, click...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have decided not to do caching, as we haven’t found a real need for it and it introduces extra complexity.
As for Slack notification, still haven’t seen a reliable solution that works. If we really want that, please open a new issue.
I think as it is, Actions works pretty well and satisfied our current CI needs.
With the cache, for some reason,
pip
builds thedrizzle
wheels with an older, cached version ofnumpy
. I’m not sure why.Agree that
oldest-supported-numpy
is the current solution given the lack of tooling to deal with this inpip
.