pre-commit/.github/workflows/languages.yaml
Maciej Nachtygal 8df1bf67f1 Add pipenv language support to pre-commit
- Implement pipenv language module in pre-commit
- Update workflows to include pipenv language tests
- Add pipenv language to allowed languages in testing script
- Create comprehensive test suite for pipenv language support
2025-02-04 13:25:11 +01:00

39 lines
952 B
YAML

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