-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,7 +4,8 @@ name: flake8 | |
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
@@ -24,3 +25,43 @@ jobs: | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.6 | ||
|
||
- name: Boot the docker containers with latest guacamole | ||
working-directory: ./devel-utils | ||
run: docker-compose up -d | ||
|
||
- name: Install latest ansible and make the collection available | ||
run: | | ||
mkdir -p ~/.ansible/collections/ansible_collections/scicore/ | ||
ln -s ${GITHUB_WORKSPACE} ~/.ansible/collections/ansible_collections/scicore/guacamole | ||
pip install ansible | ||
- name: Execute the CI playbook | ||
working-directory: ./devel-utils | ||
run: ansible-playbook test-collection.yml | ||
|
||
|
||
release: | ||
name: Release to galaxy | ||
needs: | ||
- lint | ||
- test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: galaxy | ||
uses: robertdebock/[email protected] | ||
with: | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} |