Skip to content

CI: Switch to GitHub actions. #13

CI: Switch to GitHub actions.

CI: Switch to GitHub actions. #13

Workflow file for this run

name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
python2:
runs-on: ubuntu-latest
container:
image: python:2.7.18-buster
strategy:
fail-fast: false
matrix:
python-version:
- "2.7"
steps:
- uses: actions/checkout@v4
- name: Build module
run: python setup.py build
- name: Install test dependencies
run: ./scripts/ci-install.sh
- name: Run tests
run: python setup.py test
python3-old:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version:
- "3.5"
- "3.6"
- "3.7"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build module
run: python setup.py build
- name: Install test dependencies
run: ./scripts/ci-install.sh
- name: Run tests
run: python setup.py test
python3:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build module
run: python setup.py build
- name: Install test dependencies
run: ./scripts/ci-install.sh
- name: Run tests
run: python setup.py test