From 34ee31e29927925f0353244b57931b8ef23eef53 Mon Sep 17 00:00:00 2001 From: bohd4nx Date: Fri, 29 May 2026 01:43:05 +0300 Subject: [PATCH] style: format YAML files for consistency and remove unused environment variables --- .github/workflows/ci.yml | 14 ++++++-------- .github/workflows/publish.yml | 32 ++++++-------------------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23d5f30..d23d6d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,16 +2,14 @@ name: CI on: push: - branches: [ "**" ] + branches: ["**"] pull_request: - branches: [ "**" ] + branches: ["**"] jobs: lint: name: Lint & Format runs-on: ubuntu-latest - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true steps: - uses: actions/checkout@v6 @@ -19,21 +17,20 @@ jobs: - uses: actions/setup-python@v6 with: python-version: "3.10" + cache: pip - run: pip install ".[dev]" - - run: ruff check . && ruff format --check . && mypy pyfragment + - run: ruff check . && ruff format --check . && mypy pyfragment --explicit-package-bases test: name: Tests (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true strategy: fail-fast: false matrix: - python-version: [ "3.10", "3.11", "3.12" ] # 3.13, 3.14 are not supported by some dependencies yet + python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v6 @@ -41,6 +38,7 @@ jobs: - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Install package and dev dependencies run: pip install ".[dev]" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9b9892e..b14613f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,17 +2,15 @@ name: Publish on: workflow_run: - workflows: [ "CI" ] - types: [ completed ] - branches: [ master ] + workflows: ["CI"] + types: [completed] + branches: [master] jobs: version-check: name: Version Check if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true outputs: version: ${{ steps.version.outputs.value }} is-new: ${{ steps.tag.outputs.is-new }} @@ -42,8 +40,6 @@ jobs: needs: version-check if: needs.version-check.outputs.is-new == 'true' runs-on: ubuntu-latest - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true steps: - uses: actions/checkout@v6 @@ -63,10 +59,8 @@ jobs: publish: name: Publish to PyPI - needs: [ version-check, build ] + needs: [version-check, build] runs-on: ubuntu-latest - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true environment: name: pypi url: https://pypi.org/project/pyfragment/ @@ -83,35 +77,21 @@ jobs: release: name: GitHub Release - needs: [ version-check, build ] + needs: [version-check, build] runs-on: ubuntu-latest - env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true permissions: contents: write steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - uses: actions/download-artifact@v8 with: name: dist path: dist - - name: Extract latest changelog entry - id: changelog - run: | - body=$(awk '/^## \[/{if(found) exit; found=1; next} found{print}' CHANGELOG.md) - echo "body<> $GITHUB_OUTPUT - echo "$body" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - - uses: softprops/action-gh-release@v3 with: tag_name: v${{ needs.version-check.outputs.version }} name: v${{ needs.version-check.outputs.version }} files: dist/* - body: ${{ steps.changelog.outputs.body }} + generate_release_notes: true make_latest: true