public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/mirrorselect:master commit in: .github/workflows/
@ 2023-08-07  0:14 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-08-07  0:14 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-07  0:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07  0:14 [gentoo-commits] proj/mirrorselect:master commit in: .github/workflows/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox