Skip to content
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
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
pull_request:
push:
branches: [master]
workflow_call:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: IndicoDataSolutions/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: "0.13.9"
require-checksums: true
- run: uvx ruff@0.17.6 format --check indico tests

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.9"
tox-env: py39
- python-version: "3.10"
tox-env: py310
- python-version: "3.11"
tox-env: py311
- python-version: "3.12"
tox-env: py312
- python-version: "3.13"
tox-env: py313
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: IndicoDataSolutions/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: "0.13.9"
require-checksums: true
python-version: ${{ matrix.python-version }}
- run: uvx --with tox-uv tox -e ${{ matrix.tox-env }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CI forces old tox on 3.9

Medium Severity

setup-uv sets UV_PYTHON to the matrix interpreter, and uvx --with tox-uv tox runs against that interpreter. Current tox-uv (and recent tox) require Python 3.11+, so the py39 and py310 jobs can fail to resolve or pull arbitrarily old tool versions. That is not the same as the local tox py39–py313 run described in the PR, and those matrix legs were not proven on GitHub runners.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fdbc13d. Configure here.

71 changes: 71 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Release

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

permissions:
contents: read

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
ci:
uses: ./.github/workflows/ci.yml

build:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: IndicoDataSolutions/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: "0.13.9"
require-checksums: true
- run: uv build
- name: Check built version matches tag
env:
TAG: ${{ github.ref_name }}
run: |
uv run --no-project --with packaging==26.3 python - <<'PY'
import os
import pathlib
import sys

from packaging.version import Version

wheels = list(pathlib.Path("dist").glob("*.whl"))
if len(wheels) != 1:
sys.exit(f"expected one wheel, found {wheels}")
built = Version(wheels[0].name.split("-")[1])
tag = Version(os.environ["TAG"])
if built != tag:
sys.exit(f"built version {built} does not match tag {tag}")
print(f"version {built} matches tag")
PY
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist
path: dist/
if-no-files-found: error

publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/indico-client/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
86 changes: 0 additions & 86 deletions .harness/commitinputset.yaml

This file was deleted.

87 changes: 0 additions & 87 deletions .harness/prinputset.yaml

This file was deleted.

Loading