Skip to content

Commit

Permalink
use single file for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pescobar committed Jun 23, 2022
1 parent 1418259 commit 86ad7c8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 54 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/ci-testing.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/deploy.yml

This file was deleted.

43 changes: 42 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ name: flake8
on: [push, pull_request]

jobs:
build:

lint:

runs-on: ubuntu-latest

Expand All @@ -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 }}

0 comments on commit 86ad7c8

Please sign in to comment.