diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 140b93a..aa2186d 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: b2cdb6d +_commit: a63c624 _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: js diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 28e76f7..15d1b95 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,13 +25,7 @@ permissions: jobs: build: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - python-version: ["3.11"] - node-version: [22.x] + runs-on: ubuntu-latest steps: - name: Checkout @@ -42,43 +36,39 @@ jobs: - name: Setup Python uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446 with: - version: ${{ matrix.python-version }} + version: "3.11" - name: Setup Node.js uses: actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f with: - version: ${{ matrix.node-version }} + version: 22.x - name: Install dependencies run: make develop - name: Lint run: make lint - if: matrix.os == 'ubuntu-latest' - name: Checks run: make checks - if: matrix.os == 'ubuntu-latest' - name: Build run: make build - name: Test run: make coverage - if: matrix.os == 'ubuntu-latest' - name: Upload test results uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.node-version }} + name: test-results path: '**/junit.xml' - if: ${{ always() }} + if: always() - name: Publish test results uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 with: files: '**/junit.xml' - if: matrix.os == 'ubuntu-latest' - name: Upload coverage uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 @@ -87,23 +77,19 @@ jobs: - name: Build distributions run: make dist - if: matrix.os == 'ubuntu-latest' - name: Test wheel uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446 with: module: python_template_js - if: matrix.os == 'ubuntu-latest' - name: Test source distribution uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446 with: module: python_template_js - if: matrix.os == 'ubuntu-latest' - name: Upload distributions uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: dist-${{matrix.os}} + name: dist path: dist - if: matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/copier.yaml b/.github/workflows/copier.yaml deleted file mode 100644 index 7171411..0000000 --- a/.github/workflows/copier.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Copier Updates - -on: - workflow_dispatch: - schedule: - - cron: "0 5 * * 0" - -jobs: - update: - permissions: - contents: write - pull-requests: write - runs-on: ubuntu-latest - steps: - - name: Update from Copier - uses: actions-ext/copier/update@2061209faa6b75ffd4fcecc0b0983772767997f4 - with: - token: ${{ secrets.WORKFLOW_TOKEN }} diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b263cd9..50248b2 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -14,7 +14,7 @@ permissions: jobs: docs: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} + if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -27,7 +27,7 @@ jobs: - name: Download distributions uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: - pattern: dist-ubuntu-latest* + pattern: dist merge-multiple: true path: dist run-id: ${{ github.event.workflow_run.id }} @@ -39,13 +39,13 @@ jobs: run: | uv pip install dist/*.whl uv pip install dist/*.whl --target . --no-deps - uv pip install yardang + uv pip install "yardang[llms,themes]" if: github.event_name == 'workflow_run' - name: Install from source (manual trigger) run: | uv pip install .[develop] - uv pip install yardang + uv pip install "yardang[llms,themes]" if: github.event_name == 'workflow_dispatch' - name: Build documentation