Skip to content
Open
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: 12 additions & 8 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:

build:
lints:
name: Code Inspections
runs-on: ubuntu-latest

Expand Down Expand Up @@ -51,8 +51,14 @@ jobs:
continue-on-error: true
run: uv run make.py pyright

verifytypes:
name: Verify Types
- name: Build Docs
continue-on-error: true
run: uv run make.py docs-full

# This is a second job instead of an extra step because it takes the longest
# So having it as a second job lets it run in parallel to the other checks.
docs:
name: Build Documentation
runs-on: ubuntu-latest

steps:
Expand All @@ -68,10 +74,8 @@ jobs:
with:
enable-cache: true

- name: Sync UV project
- name: Sync UV Project
run: uv sync

- name: Pyright Type Completeness
# Suppress exit code because we do not expect to reach 100% type completeness any time soon
run: uv run pyright --verifytypes arcade || true

- name: build-docs
run: uv run make.py docs-full
58 changes: 0 additions & 58 deletions .github/workflows/create_commit_note_log.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/docs.yml

This file was deleted.

80 changes: 50 additions & 30 deletions .github/workflows/push_build_to_prod_pypi.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,58 @@
name: Distribute build to PyPi Production

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
type: string

jobs:
push:
tags:
- '*'

# --- Deploy to pypi
deploy-to-pypi-prod:
name: Create a Release

jobs:
run:
runs-on: ubuntu-latest
environment: deploy-pypi-prod
environment:
name: deploy-pypi-prod
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: 'true'
ref: ${{ github.event.inputs.tag }}
- name: Set up Python
- uses: actions/checkout@v5

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: >-
python -m pip install build twine
- name: Build and Upload to Prod PyPI
python-version: '3.14'

- name: Install UV
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- name: Build Project
run: uv build

- name: Publish to PyPi
run: uv publish

- name: Generate Release Notes
run: |
python -m build --sdist --wheel --outdir dist/
python3 -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PROD_TOKEN }}
TWINE_REPOSITORY: pypi
current_tag=${{ github.ref_name }}
previous_tag=$(git describe --abbrev=0 --match "*" --tags $current_tag^)
echo "current_tag=$current_tag"
echo "previous_tag=$previous_tag"
echo "commit_history"
echo "=============="
while read -r;
do
echo "- $REPLY" | tee -a body.md
done < <(git log --pretty=oneline --abbrev-commit --decorate-refs-exclude=refs/tags $current_tag...$previous_tag)
echo "=============="

- name: Publish GitHub Release
uses: ncipollo/release-action@v1
with:
bodyFile: "body.md"
tag: ${{ github.ref_name }}





35 changes: 0 additions & 35 deletions .github/workflows/push_build_to_test_pypi.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/status_embed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Status Embed
on:
workflow_run:
workflows:
- GitHub Ubuntu test
- Windows self-hosted test
- PyTest
- Code Quality
types:
- completed

Expand Down