-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit: 1. Moves testing and deployment from TravisCI to Github Actions; this is now the principle test infrastructure used by AiiDA 2. Updates the pre-commit configuration and adds a YAML formatter (causing some change to indentations) 3. Drops testing of Ubuntu 16.04 and adds testing for 20.04; 16.04 is scheduled for end-of-life in April 2021, but the reason to remove early is that the included python version is 3.5 which is now deprecated by aiida-core (and already failing for aiida-yambo install). Note 18.04 has python 3.6 and 20.04 has 3.8. - psutil does not currently have a wheel install for 20.04, this necessitates the install of `gcc` and `python3-dev` for this distribution 4. Update README with new CI badge and development instructions 5. Adds a tox.ini configuration, for development environment automation
- Loading branch information
1 parent
0902146
commit c709088
Showing
48 changed files
with
489 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
warn_list: # or 'skip_list' to silence them completely | ||
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern | ||
- '208' # File permissions unset or incorrect | ||
- '305' # Use shell only when shell functionality is required | ||
- '503' # Tasks that run when changed should likely be handlers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
||
env: | ||
galaxy-name: "marvel-nccr.aiida" | ||
|
||
jobs: | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- uses: pre-commit/[email protected] | ||
|
||
molecule: | ||
|
||
strategy: | ||
matrix: | ||
distro: [ubuntu1804, ubuntu2004, centos8, fedora31] | ||
fail-fast: false | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
path: ${{ env.galaxy-name }} | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install --upgrade pip | ||
pip --version | ||
- name: Install requirements | ||
run: | | ||
pip install wheel | ||
pip install -r requirements.txt | ||
working-directory: ${{ env.galaxy-name }} | ||
|
||
- name: Run molecule | ||
run: molecule test | ||
working-directory: ${{ env.galaxy-name }} | ||
env: | ||
MOLECULE_DISTRO: ${{ matrix.distro }} | ||
|
||
release: | ||
name: Publish to ansible-galaxy | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
needs: [pre-commit, molecule] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: robertdebock/[email protected] | ||
with: | ||
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.swp | ||
.galaxy_install_info | ||
.vscode/ | ||
.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# For use with pre-commit. | ||
# See usage instructions at https://pre-commit.com | ||
repos: | ||
|
||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v1.5.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
args: [--autofix, --indent, "2", --preserve-quotes] | ||
|
||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.25.0 | ||
hooks: | ||
- id: yamllint | ||
|
||
- repo: https://github.com/ansible/ansible-lint | ||
rev: v4.3.5 | ||
hooks: | ||
- id: ansible-lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends: default | ||
rules: | ||
document-start: disable | ||
line-length: | ||
max: 200 | ||
level: warning | ||
indentation: | ||
spaces: 2 | ||
indent-sequences: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--- | ||
- name: reentry scan | ||
shell: "{{ aiida_venv }}/bin/reentry scan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.