Skip to content
Closed
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
20 changes: 20 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint GitHub Actions workflows

on:
push:
paths:
- '.github/workflows/**'
pull_request:
paths:
- '.github/workflows/**'

jobs:
actionlint:
name: Actionlint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run actionlint
uses: reviewdog/action-actionlint@v1
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

- name: Get PR labels
id: get_labels
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const prs = context.payload.workflow_run.pull_requests;
Expand Down Expand Up @@ -70,21 +70,21 @@
echo "PR Labels: ${{ needs.auto-merge.outputs.prLabels }}"

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install package
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .[all]
pip install ".[all]"

- name: Get version from package
id: get_version
run: |
VERSION=$(python -c "import pysdfgen; print(pysdfgen.__version__)")
VERSION="$(python -c "import pysdfgen; print(pysdfgen.__version__)")"
echo "Detected version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"

- name: Tag and push release
run: |
Expand All @@ -101,7 +101,7 @@
ref: main
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install build tool
Expand All @@ -121,10 +121,11 @@
strategy:
matrix:
# https://github.com/actions/runner-images
# Note: To test macOS-x with Intel architecture,
# you need to use the paid macOS-x-large runner, as macOS-x is grouped with ARM-based runners.
# https://docs.github.com/en/actions/concepts/runners/about-larger-runners
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest]
# Note: macos-13 is deprecated and will be retired by December 4, 2025
# Using macos-15-intel for Intel x86_64 architecture testing
# macos-latest (ARM-based Apple Silicon) for general testing
# https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-15-intel, macos-latest]

Check failure on line 128 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/release.yml#L128

label "macos-15-intel" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
Raw output
e:.github/workflows/release.yml:128:63: label "macos-15-intel" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]

steps:
- uses: actions/checkout@v4
Expand All @@ -150,7 +151,7 @@
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/download-artifact@v4
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Formatting
Expand All @@ -26,7 +26,7 @@
- name: Check Formatting
run: |
flake8 .
grep -rlIP '[^\x00-\x7F]' pysdfgen | grep '\.pyx\?' | sort > unicode.out; grep -rlI '# -\*- coding: \(utf-8\|latin-1\) -\*-' pysdfgen | grep '\.pyx\?' | sort > coding.out; comm -23 unicode.out coding.out > test_code.out; cat test_code.out; test \! -s test_code.out
grep -rlIP '[^\x00-\x7F]' pysdfgen | grep '\\.pyx\\?' | sort > unicode.out; grep -rlI '# -\\*- coding: \\(utf-8\\|latin-1\\) -\\*-' pysdfgen | grep '\\.pyx\\?' | sort > coding.out; comm -23 unicode.out coding.out > test_code.out; cat test_code.out; test ! -s test_code.out
- name: Check isort
run: |
isort -c .
Expand All @@ -41,7 +41,7 @@
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout submodules
Expand All @@ -65,10 +65,6 @@
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install APT On Linux
run: |
apt-get update -qq -y
Expand All @@ -93,10 +89,11 @@
strategy:
matrix:
# https://github.com/actions/runner-images
# Note: To test macOS-x with Intel architecture,
# you need to use the paid macOS-x-large runner, as macOS-x is grouped with ARM-based runners.
# https://docs.github.com/en/actions/concepts/runners/about-larger-runners
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest]
# Note: macos-13 is deprecated and will be retired by December 4, 2025
# Using macos-15-intel for Intel x86_64 architecture testing
# macos-latest (ARM-based Apple Silicon) for general testing
# https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-15-intel, macos-latest]

Check failure on line 96 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/test.yml#L96

label "macos-15-intel" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
Raw output
e:.github/workflows/test.yml:96:63: label "macos-15-intel" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]

steps:
- uses: actions/checkout@v4
Expand Down
Loading