summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2023-04-23 20:49:02 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2023-04-23 20:49:02 +0200
commitc0d867079dff6a3e15d13967c05d0f4cf2de11c5 (patch)
treea57b75dfefd8014bc68ef35ae9de7bba3b0e06a3
parentbc6445a48198b2daaa298ef1e707ca9dca49a022 (diff)
downloadrsa-git-c0d867079dff6a3e15d13967c05d0f4cf2de11c5.tar.gz
Replace Travis-CI with Github Actions
Travis-CI stopped working, switching over to Github Actions for automated unit tests. This removes the used of 'coveralls' in the CI pipeline (may come back at some point), and adds testing on pypy 3.8 and 3.9.
-rw-r--r--.github/workflows/tests.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..b481449
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,32 @@
+name: Test Python-RSA
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version:
+ - "3.7"
+ - "3.8"
+ - "pypy3.8"
+ - "3.9"
+ - "pypy3.9"
+ - "3.10"
+ - "3.11"
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install poetry
+ poetry install
+ - name: Run tox
+ # Run tox using the version of Python in `PATH`
+ run: poetry run tox -e py