CI: Switch to GitHub actions. #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |