aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2022-11-07 20:28:07 +0100
committerGitHub <noreply@github.com>2022-11-07 20:28:07 +0100
commit5e43c0a4ba891dabb945f94922120da6570b8b81 (patch)
tree5ccdc4efd64d9c1ade5f6c501b751e4b93d920e0
parentb3b4ab5716470449ad4845a34b959e0ef2301359 (diff)
downloadscreenplain-5e43c0a4ba891dabb945f94922120da6570b8b81.tar.gz
Set up Github workflow
-rw-r--r--.github/workflows/python-package.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
new file mode 100644
index 0000000..01a76a6
--- /dev/null
+++ b/.github/workflows/python-package.yml
@@ -0,0 +1,29 @@
+name: Python package
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: ["3.8", "3.9", "3.10"]
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ cache: pip_${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+ - name: Test
+ run: bin/test