Skip to content

Commit

Permalink
Refactor github action workflow definitions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Sep 24, 2023
1 parent 93a0ab0 commit 6c0e95f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 26 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: lint

on:
pull_request:
branches:
- master

defaults:
run:
working-directory: 'nephelaiio.docker'

jobs:

lint:
name: lint
runs-on: ubuntu-latest
steps:

- name: check out the codebase
uses: actions/checkout@v3
with:
path: 'nephelaiio.docker'

- name: set up python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: install poetry
run: pip3 install poetry

- name: install pips
run: poetry install

- name: lint code
run: |
poetry run molecule syntax
30 changes: 4 additions & 26 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,16 @@ name: molecule

on:
pull_request:
branches:
- master
schedule:
- cron: "0 3 * * 0"

defaults:
run:
working-directory: 'nephelaiio.docker'

jobs:

lint:
name: lint
runs-on: ubuntu-latest
steps:

- name: check out the codebase
uses: actions/checkout@v3
with:
path: 'nephelaiio.docker'

- name: set up python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: install poetry
run: pip3 install poetry

- name: install pips
run: poetry install

- name: lint code
run: |
poetry run molecule syntax
molecule:
name: molecule
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6c0e95f

Please sign in to comment.