From 6615863580f65baa23562d96178981ff0fad501d Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Sun, 23 Feb 2020 20:08:42 -0500 Subject: [PATCH 1/4] Add CI workflow --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9146f5f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: Run automation checks +on: [pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Run tox automation + run: | + pip install tox + tox From 6ac18c1bf5abf855dfa66fdcbb150b583c4cd26e Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Sun, 23 Feb 2020 20:11:07 -0500 Subject: [PATCH 2/4] Rename CI job and environment list --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9146f5f..d9989c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ -name: Run automation checks +name: CI on: [pull_request] jobs: - build: + Test: runs-on: ubuntu-latest strategy: matrix: From c8cc6ce0af5dc204c99c6ad84d5ab27846ec3739 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Sun, 23 Feb 2020 20:19:56 -0500 Subject: [PATCH 3/4] Update python version breakdown --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9989c8..334bfe6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,15 +3,20 @@ on: [pull_request] jobs: Test: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.6 uses: actions/setup-python@v1 with: - python-version: ${{ matrix.python-version }} + python-version: 3.6 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 - name: Run tox automation run: | pip install tox From c7fc882981fbceef6692b4837ee2a961989b574b Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sun, 23 Feb 2020 20:24:39 -0500 Subject: [PATCH 4/4] Fix coverage path --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c0a011a..521f07b 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ deps = pytest pytest-cov commands = - pytest --cov={envsitepackagesdir}/keyosk --cov-config {env:HOME}/.coveragerc tests/ --cov-report term-missing + pytest --cov={envsitepackagesdir}/keyosk --cov-config .coveragerc tests/ --cov-report term-missing [testenv:lint] description = Check code formatting against black and pylint