aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-07 00:55:52 +0100
committerSam James <sam@gentoo.org>2023-08-07 00:57:50 +0100
commit66516d177195f3f0f1e64b2e711678622ad2f8b8 (patch)
tree00ea1936e1da97e84c8f854741c06eb1df59dfa1 /.github
parentextractor.py: cleanup py2 compat (diff)
downloadmirrorselect-66516d177195f3f0f1e64b2e711678622ad2f8b8.tar.gz
mirrorselect-66516d177195f3f0f1e64b2e711678622ad2f8b8.tar.bz2
mirrorselect-66516d177195f3f0f1e64b2e711678622ad2f8b8.zip
CI: add basic pytest workflow
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..1f18083
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,40 @@
+name: Unit tests
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version:
+ - '3.7'
+ - '3.8'
+ - '3.9'
+ - '3.10'
+ - '3.11'
+ - '3.12-dev'
+ - 'pypy-3.7'
+ - 'pypy-3.8'
+ - 'pypy-3.9'
+
+ 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: |
+ set -xe
+
+ python -VV
+ python -m site
+ python -m pip install --upgrade pip
+ python -m pip install pytest setuptools
+
+ - name: Run tests
+ run: |
+ pytest