name: languages on: push: branches: [main, test-me-*] tags: '*' pull_request: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: language-tests: strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] language: [python, pipenv] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip pip install -e . -r requirements-dev.txt pip install pipenv - name: Run tests run: coverage run -m pytest tests/languages/${{ matrix.language }}_test.py - name: Check coverage run: coverage report --include pre_commit/languages/${{ matrix.language }}.py,tests/languages/${{ matrix.language }}_test.py