mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
- 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
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: main
|
|
|
|
on:
|
|
push:
|
|
branches: [main, test-me-*]
|
|
tags: '*'
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
exclude:
|
|
# Only run py39 on Windows
|
|
- os: windows-latest
|
|
python-version: '3.10'
|
|
- os: windows-latest
|
|
python-version: '3.11'
|
|
- os: windows-latest
|
|
python-version: '3.12'
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox tox-gh-actions
|
|
|
|
- name: Test with tox
|
|
run: tox -- tests/languages/python_test.py tests/languages/pipenv_test.py
|
|
env:
|
|
TOXENV: py${{ matrix.python-version }}
|