name: Python package 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.5', '3.6', '3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install -r requirements-test.txt - name: Test with unittest run: | coverage run -m unittest coverage xml -o ./coverage.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 with: fail_ci_if_error: true files: ./coverage.xml flags: unittests name: codecov-umbrella verbose: true