Skip to content

Commit

Permalink
fix: Refine CI matrix configuration
Browse files Browse the repository at this point in the history
- Map each tox environment to specific Python version
- Add proper matrix includes
- Improve error reporting with verbose tox output
- Fix dependency installation steps
  • Loading branch information
anandgupta42 committed Jan 9, 2025
1 parent 8835e6a commit 0ff8179
Showing 1 changed file with 45 additions and 14 deletions.
59 changes: 45 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,47 @@ jobs:
- pypy39-nocov
- pypy310-cover
- pypy310-nocov
include:
- tox-env: py38-cover
python-version: "3.8"
- tox-env: py38-nocov
python-version: "3.8"
- tox-env: py39-cover
python-version: "3.9"
- tox-env: py39-nocov
python-version: "3.9"
- tox-env: py310-cover
python-version: "3.10"
- tox-env: py310-nocov
python-version: "3.10"
- tox-env: py311-cover
python-version: "3.11"
- tox-env: py311-nocov
python-version: "3.11"
- tox-env: py312-cover
python-version: "3.12"
- tox-env: py312-nocov
python-version: "3.12"
- tox-env: pypy38-cover
python-version: "pypy-3.8"
- tox-env: pypy38-nocov
python-version: "pypy-3.8"
- tox-env: pypy39-cover
python-version: "pypy-3.9"
- tox-env: pypy39-nocov
python-version: "pypy-3.9"
- tox-env: pypy310-cover
python-version: "pypy-3.10"
- tox-env: pypy310-nocov
python-version: "pypy-3.10"

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: |
pypy-3.8
pypy-3.9
pypy-3.10
3.8
3.9
3.10
3.11
3.12
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install dependencies
Expand All @@ -58,16 +83,19 @@ jobs:
- name: Test with tox
env:
TOXENV: ${{ matrix.tox-env }}
run: tox
run: tox -v

check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install tox
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- run: tox -e check

docs:
Expand All @@ -76,6 +104,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install tox
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- run: tox -e docs

0 comments on commit 0ff8179

Please sign in to comment.