From bc2f19bd0d0c62ebc79c78bdeab0b3816038ed62 Mon Sep 17 00:00:00 2001 From: awmatheson Date: Tue, 30 Jun 2020 09:00:58 -0700 Subject: [PATCH 1/3] add actions --- .github/workflows/test_and_lint.yaml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test_and_lint.yaml diff --git a/.github/workflows/test_and_lint.yaml b/.github/workflows/test_and_lint.yaml new file mode 100644 index 0000000..543963d --- /dev/null +++ b/.github/workflows/test_and_lint.yaml @@ -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 code/ --count --ignore=E501 --show-source --statistics + flake8 tests/ --count --ignore=E501,E402 --show-source --statistics + + - name: Test + id: python_test + run: | + pip install -e . + pip install pytest + pytest \ No newline at end of file From 7a1d268fecde11166d60b42dfb9b96ced67bb2eb Mon Sep 17 00:00:00 2001 From: awmatheson Date: Tue, 30 Jun 2020 09:06:04 -0700 Subject: [PATCH 2/3] update dir --- .github/workflows/test_and_lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_lint.yaml b/.github/workflows/test_and_lint.yaml index 543963d..3681a15 100644 --- a/.github/workflows/test_and_lint.yaml +++ b/.github/workflows/test_and_lint.yaml @@ -19,7 +19,7 @@ jobs: id: python_linting run: | pip install flake8 - flake8 code/ --count --ignore=E501 --show-source --statistics + flake8 mystify/ --count --ignore=E501 --show-source --statistics flake8 tests/ --count --ignore=E501,E402 --show-source --statistics - name: Test From 9e8b55ff12a75e16cc37c112576d7cb16c5a4584 Mon Sep 17 00:00:00 2001 From: Zander <6073079+awmatheson@users.noreply.github.com> Date: Tue, 30 Jun 2020 12:07:43 -0400 Subject: [PATCH 3/3] remove /test dir --- .github/workflows/test_and_lint.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_and_lint.yaml b/.github/workflows/test_and_lint.yaml index 3681a15..c149e59 100644 --- a/.github/workflows/test_and_lint.yaml +++ b/.github/workflows/test_and_lint.yaml @@ -20,11 +20,11 @@ jobs: run: | pip install flake8 flake8 mystify/ --count --ignore=E501 --show-source --statistics - flake8 tests/ --count --ignore=E501,E402 --show-source --statistics - name: Test id: python_test run: | pip install -e . pip install pytest - pytest \ No newline at end of file + pytest +