commit:     66516d177195f3f0f1e64b2e711678622ad2f8b8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  6 23:55:52 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug  6 23:57:50 2023 +0000
URL:        https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=66516d17

CI: add basic pytest workflow

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

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

Reply via email to