name: Tests (tox) on: - push - pull_request jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: [3.6, 3.7, 3.8, 3.9] 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: | pip install tox tox-gh-actions - name: Test with tox run: tox if: ${{ matrix.python-version != '3.9' }} - name: Test with tox (and upload coverage) uses: paambaati/codeclimate-action@v2.7.5 if: ${{ matrix.python-version == '3.9' }} env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: coverageCommand: tox coverageLocations: | ${{ github.workspace }}/.tox/reports/*/coverage.xml:coverage.py prefix: ${{ github.workspace }}/.tox/py39/lib/python3.9/site-packages - uses: codecov/codecov-action@v1 with: directory: '.tox/reports'