Skip to content

Execute test pipeline on pull request (#263) #137

Execute test pipeline on pull request (#263)

Execute test pipeline on pull request (#263) #137

Workflow file for this run

name: ci
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, '3.10', '3.11']
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: |
python -m pip install --disable-pip-version-check --upgrade pip
python -m pip install tox tox-gh-actions coverage
- name: test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}
- name: coverage
run: "python -m coverage xml"
- name: "upload coverage to codecov"
if: ${{ github.event_name == 'push' }}
uses: "codecov/codecov-action@v1"
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true