Skip to content

fix wrongly running macos workflow on ubuntu-latest + formatting #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,39 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- python-version: "3.13" # Keep in sync with .readthedocs.yml
env:
TOXENV: docs
- python-version: "3.13"
env:
TOXENV: pre-commit
- python-version: "3.13"
env:
TOXENV: pylint
- python-version: "3.13"
env:
TOXENV: typing
- python-version: "3.13"
env:
TOXENV: twinecheck
- python-version: "3.13" # Keep in sync with .readthedocs.yml
env:
TOXENV: docs
- python-version: "3.13"
env:
TOXENV: pre-commit
- python-version: "3.13"
env:
TOXENV: pylint
- python-version: "3.13"
env:
TOXENV: typing
- python-version: "3.13"
env:
TOXENV: twinecheck

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run check
env: ${{ matrix.env }}
run: |
pip install --upgrade pip
pip install --upgrade tox
tox
- name: Run check
env: ${{ matrix.env }}
run: |
pip install --upgrade pip
pip install --upgrade tox
tox
38 changes: 19 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Check Tag
id: check-release-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then
echo ::set-output name=release_tag::true
fi
- name: Check Tag
id: check-release-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then
echo ::set-output name=release_tag::true
fi

- name: Publish to PyPI
if: steps.check-release-tag.outputs.release_tag == 'true'
run: |
pip install --upgrade build twine
python -m build
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
twine upload dist/*
- name: Publish to PyPI
if: steps.check-release-tag.outputs.release_tag == 'true'
run: |
pip install --upgrade build twine
python -m build
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
twine upload dist/*
39 changes: 25 additions & 14 deletions .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,37 @@ on:

jobs:
tests:
runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-rc.1"]
os:
- macos-latest
- macos-13
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14.0-rc.1"
- "pypy3.10"
- "pypy3.11"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: |
pip install --upgrade pip
pip install --upgrade tox
tox -e py
- name: Run tests
run: |
pip install --upgrade pip
pip install --upgrade tox
tox -e py

- name: Upload coverage report
uses: codecov/codecov-action@v5
- name: Upload coverage report
uses: codecov/codecov-action@v5
36 changes: 22 additions & 14 deletions .github/workflows/tests-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,34 @@ on:

jobs:
tests:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-rc.1", "pypy3.10", "pypy3.11"]
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14.0-rc.1"
- "pypy3.10"
- "pypy3.11"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: |
pip install --upgrade pip
pip install --upgrade tox
tox -e py
- name: Run tests
run: |
pip install --upgrade pip
pip install --upgrade tox
tox -e py

- name: Upload coverage report
uses: codecov/codecov-action@v5
- name: Upload coverage report
uses: codecov/codecov-action@v5
36 changes: 22 additions & 14 deletions .github/workflows/tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,34 @@ on:

jobs:
tests:

runs-on: windows-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-rc.1"]
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14.0-rc.1"
- "pypy3.10"
- "pypy3.11"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: |
pip install --upgrade pip
pip install --upgrade tox
tox -e py
- name: Run tests
run: |
pip install --upgrade pip
pip install --upgrade tox
tox -e py

- name: Upload coverage report
uses: codecov/codecov-action@v5
- name: Upload coverage report
uses: codecov/codecov-action@v5
Loading