Skip to content

Commit

Permalink
Merge 0899ac9 into 67bd2dc
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturk committed Aug 19, 2020
2 parents 67bd2dc + 0899ac9 commit ee0945d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check-yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Check that YAML lints without errors

name: Check YAML

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name:
run: |
./scripts/lint_yaml.py
32 changes: 32 additions & 0 deletions .github/workflows/test-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test Scripts

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install poetry flake8
poetry install
- name: Lint with flake8
run: |
flake8 scripts --show-source --statistics
- name: Test with pytest
run: |
./scripts/run_tests.sh

0 comments on commit ee0945d

Please sign in to comment.