- Notifications
You must be signed in to change notification settings - Fork113
Enabled two new CI workflows to build, test, (and release) containers.#612
Enabled two new CI workflows to build, test, (and release) containers.#612f0rki wants to merge 1 commit intopapis:mainfrom
Conversation
alexfikl left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Left a few questions, but overall this looks good to me!
Does this require some special access to publish the Docker images?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
.github/workflows/main.yml Outdated
| fail-fast: False | ||
| # fail fast only on pull-requests! | ||
| fail-fast: ${{ github.event_name == 'pull_request' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Why this change? The CI often fails on Windows but not Linux or on some python versions and not others, so it's very useful to let it all run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ok I wanted to reduce redundant failures, e.g. because PRs forgot to format or because of some trailing whitespace. But I can remove that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That's a fair point, but probably better handled by just separating the static checks (flake8,mypy) and only runningpytest if those succeed.
papis tests are pretty fast, so we never bothered too much :\
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
ok I separated them. Now the lints are run first onubuntu-latest with latest python in a separate step before running all tests/lints with the matrix job.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
f0rki commentedJul 24, 2023
Yeah I think you have to enable that workflows can write to the repo/registry in the Settings. |
0134f83 toee9d4f4Comparealexfikl commentedAug 28, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'm sorry for letting this fall off the radar for quite a while now. Maybe we can get some of it in!
3 and especially 4 can go in right away, but they will have to be in separate PRs, since I can't merge this wholesale. Do you have any time to work on these? If not, I can slowly cherry pick stuff and merge it. |
f0rki commentedAug 29, 2023
Yes feel free to cherry pick the commits you think are worth merging now. |
f0rki commentedAug 29, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yes there is a commit (e9cb62b) that adds things from |
e9cb62b tocc210a8Comparealexfikl commentedAug 31, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@f0rki Squashed and rebased this to only contain the docker stuff, since everything else should be in main already. @alejandrogallo According to@f0rki, this requires adding some permissions to the settings and maybe some other things before it can actually get automagically published to |
cc210a8 to9f2b55eComparealexfikl commentedAug 31, 2023
This seems to be currently failing:https://github.com/f0rki/papis/actions/runs/6040713352/job/16392121597 (possibly my bad :( |
d4b5e38 to62e2764Comparef0rki commentedSep 11, 2023
rebased and pushed fixes. should work now again. |
2745ee2 to21cb229Compare
Test the nix and docker-based install methods.
container-build.yml- does the docker magicDockerfileand check whethermake ci-testworks.ghcr.io/papis/papis, i.e., papis packaged as a container.tools/run-integration-test.shnix-flake.yml- does the nix magicnix build- checks the flake buildnix develop- checks whether pytest passes in the nix development environment.Packaging papis in docker is a nice thing to have and quite easy with github's container registry (
ghcr.io). For example, if you like to runpapis serveon your home server this might be a convenient thing to run.