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 all 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
80 changes: 41 additions & 39 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,50 @@
---
name: Checks

on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
build:
runs-on: ubuntu-latest

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
strategy:
fail-fast: false
matrix:
include:
# Keep in sync with .readthedocs.yml
- python-version: '3.13'
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
steps:
- 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
52 changes: 27 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
---
name: Publish

on:
push:
tags:
- v*
push:
tags:
- v*

jobs:
publish:
runs-on: ubuntu-latest
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
steps:
- 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: |
RE="^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$"
if [[ ${{ github.event.ref }} =~ $RE ]]; 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/*
59 changes: 34 additions & 25 deletions .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
---
name: macOS

on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
tests:
runs-on: macos-latest

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"]
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

steps:
- uses: actions/checkout@v4
steps:
- 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
59 changes: 34 additions & 25 deletions .github/workflows/tests-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
---
name: Ubuntu

on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
tests:
runs-on: ubuntu-latest

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"]
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

steps:
- uses: actions/checkout@v4
steps:
- 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
59 changes: 34 additions & 25 deletions .github/workflows/tests-windows.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
---
name: Windows

on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
tests:
runs-on: windows-latest

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"]
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

steps:
- uses: actions/checkout@v4
steps:
- 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
Loading