Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

add actions for testing and linting #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/test_and_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint and Test
on: [push, pull_request]
jobs:
lint:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
id: python_setup
uses: actions/setup-python@v1
with:
python-version: "3.8"

- name: Check Out Repository
id: checkout_repository
uses: actions/checkout@v1

- name: Lint
id: python_linting
run: |
pip install flake8
flake8 mystify/ --count --ignore=E501 --show-source --statistics

- name: Test
id: python_test
run: |
pip install -e .
pip install pytest
pytest