From c0d867079dff6a3e15d13967c05d0f4cf2de11c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sun, 23 Apr 2023 20:49:02 +0200 Subject: 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. --- .github/workflows/tests.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/tests.yml (limited to '.github') 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 -- cgit v1.2.1