Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2021-01-02 16:54:20 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2021-01-04 17:43:03 +0300
commitb146f244ce0f015948cff181188b2696c6c996eb (patch)
treee87274696a08d3f23be102e69ab3106a7d107b94
parent172ddcf6685678444229d390e323f227ae7d1ca5 (diff)
Add github action to lint and run tests
-rw-r--r--.github/workflows/calm.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/calm.yaml b/.github/workflows/calm.yaml
new file mode 100644
index 0000000..bae70d4
--- /dev/null
+++ b/.github/workflows/calm.yaml
@@ -0,0 +1,28 @@
+name: calm
+on: [push, pull_request]
+
+jobs:
+ test:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [3.4, 3.5, 3.6, 3.7, 3.8]
+
+ steps:
+ - 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
+ pip install -r requirements.txt
+ - name: flake8
+ run: |
+ flake8 --count --show-source
+ - name: Test
+ run: |
+ python -m unittest discover