Add method to set event badge settings (#6679) #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- 'master' | |
- '*.x' | |
- 'a11y' | |
- '!1.*' | |
- '!2.*' | |
- '!3.0.*' | |
- '!3.1.*' | |
pull_request: | |
branches: | |
- 'master' | |
- 'a11y' | |
- '*.x' | |
- '!1.*' | |
- '!2.*' | |
- '!3.0.*' | |
- '!3.1.*' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- labeled | |
env: | |
TZ: Europe/Zurich | |
jobs: | |
build: | |
name: Build package π¦ | |
runs-on: ubuntu-22.04 | |
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'build-wheel') | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# prefer head commit over merge commit in case of PRs | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }} | |
- uses: actions/setup-python@v5 | |
name: Set up Python π | |
with: | |
python-version: '3.12' | |
- uses: actions/setup-node@v4 | |
name: Setup Node | |
with: | |
node-version: 18.x | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Get uv cache dir | |
id: uv-cache | |
run: echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT | |
- name: Cache uv | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.uv-cache.outputs.dir }} | |
key: uv|${{ runner.os }}|3.12|${{ hashFiles('requirements*.txt') }} | |
- name: Install build deps π§ | |
run: | | |
sudo apt-get install libpq-dev | |
uv pip install --system -U setuptools wheel | |
uv pip install --system -e '.[dev]' | |
- name: Install npm deps β | |
run: npm ci | |
- name: Build wheel π | |
run: ./bin/maintenance/build-wheel.py indico --add-version-suffix | |
- uses: actions/upload-artifact@v4 | |
name: Upload build artifacts π¦ | |
with: | |
name: indico-wheel | |
retention-days: 7 | |
path: ./dist |