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

Add GitHub actions CI #57

Merged
merged 2 commits into from
Mar 12, 2021
Merged

Add GitHub actions CI #57

merged 2 commits into from
Mar 12, 2021

Conversation

greschd
Copy link
Member

@greschd greschd commented Mar 10, 2021

Fixes #58

Part 1 of moving to GHA (#54): Travis CI still enabled. Will remove that once we switched over. The actions can be viewed at https://github.com/greschd/qe-tools/actions

Using the same setup as for aiida-wannier90: The workflows are defined in .github/workflows_source using YAML anchors, which are expanded into .github/workflows by the script .utils/interpolate_yaml_anchors.py.

Drops support for Python 3.5, adds 3.9 to the CI matrix. As a consequence the prospector run fails, which is why I have replaced it with a plain pylint and made some minor changes to make that pass.

Also added a top-level repos to .pre-commit-config.yaml, because my editor complained about that not matching the schema 🙃

@greschd

This comment has been minimized.

@greschd

This comment has been minimized.

@greschd greschd marked this pull request as draft March 10, 2021 10:56
@greschd
Copy link
Member Author

greschd commented Mar 10, 2021

So this has become a bit of an unwieldy PR - if desired I can separate the "move to GHA" from the "drop Python3.5, add Python3.9" to get more manageable chunks.

Currently these two steps are just separate commits. Note that those probably shouldn't be squashed together when merging.

Because the pylint bundled with latest prospector is incompatible
with Python 3.9 (at least partially), we drop prospector in favor
of an updated pylint.

The change in pylint version required some changes to make the
code pass.
@greschd greschd marked this pull request as ready for review March 11, 2021 10:36
Copy link
Member

@giovannipizzi giovannipizzi left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good - I let you merge so you can pick the correct merge strategy and order of PRs

@greschd greschd merged commit 146b774 into aiidateam:develop Mar 12, 2021
@greschd greschd deleted the github_actions branch March 12, 2021 14:58
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.

Drop Python 3.5 compatibility, add Python 3.9 to test matrix
2 participants