summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2020-11-22 22:18:41 -0800
committerSeth Morton <seth.m.morton@gmail.com>2020-11-22 22:18:41 -0800
commit69d737c46840485237ad837ca49c34aca3e08db2 (patch)
tree38f1b2047468e5356ea4f58c2712b6a86cda3e71 /.github
parent05d54f4eb9f72b5139c282717c967c9631edfd7a (diff)
downloadnatsort-69d737c46840485237ad837ca49c34aca3e08db2.tar.gz
Add GitHub Action for tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..cd056ce
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,34 @@
+name: Tests
+
+# Run the tests only if the code quality checks pass
+on:
+ workflow_run:
+ workflows: ["Code Quality"]
+ types:
+ - completed
+
+
+jobs:
+ linux-tests:
+ name: Linux Tests
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install Dependencies
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install tox tox-gh-actions codacy-coverage codecov
+
+ - name: Run Tests
+ run: tox