-
Notifications
You must be signed in to change notification settings - Fork 15
chore: Update copier template to v0.5.1 #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../AGENTS.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,5 @@ updates: | |
| - "*" | ||
| commit-message: | ||
| prefix: ci | ||
| cooldown: | ||
| default-days: 7 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,13 +17,42 @@ jobs: | |
| with: | ||
| fetch-depth: 0 | ||
| - name: Set up pixi | ||
| <<<<<<< before updating | ||
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | ||
| with: | ||
| environments: build | ||
| - name: Set version | ||
| run: pixi run -e build set-version | ||
| ||||||| last update | ||
| uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8 | ||
| with: | ||
| environments: build | ||
| ======= | ||
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | ||
| - name: Derive version | ||
| id: version | ||
| if: startsWith(github.ref, 'refs/tags/') | ||
| shell: bash | ||
| run: echo "version=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> $GITHUB_OUTPUT | ||
| - name: Replace version | ||
| if: startsWith(github.ref, 'refs/tags/') | ||
| run: | | ||
| sed -i -e "s/0.0.0/${STEPS_VERSION_OUTPUTS_VERSION}/g" pyproject.toml | ||
| env: | ||
| STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }} | ||
| >>>>>>> after updating | ||
|
Comment on lines
+20
to
+43
|
||
| - name: Build project | ||
| <<<<<<< before updating | ||
| run: pixi run -e build build-sdist | ||
| ||||||| last update | ||
| run: pixi run -e build build-wheel | ||
| - name: Check package | ||
| run: pixi run check-wheel | ||
| ======= | ||
| run: pixi run build-wheel | ||
| - name: Check package | ||
| run: pixi run check-wheel | ||
| >>>>>>> after updating | ||
|
Comment on lines
+45
to
+55
|
||
| - name: Upload package | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | ||
| with: | ||
|
|
@@ -68,7 +97,7 @@ jobs: | |
| manylinux: auto | ||
| sccache: true | ||
| - name: Check package | ||
| run: pixi run -e build check-wheel | ||
| run: pixi run check-wheel | ||
| - name: Upload package | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | ||
| with: | ||
|
|
@@ -84,7 +113,13 @@ jobs: | |
| id-token: write | ||
| environment: pypi | ||
| steps: | ||
| <<<<<<< before updating | ||
| - uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 | ||
| ||||||| last update | ||
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | ||
| ======= | ||
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| >>>>>>> after updating | ||
|
Comment on lines
+116
to
+122
|
||
| with: | ||
| path: dist | ||
| merge-multiple: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,17 +13,31 @@ permissions: | |
| contents: read | ||
|
|
||
| jobs: | ||
| <<<<<<< before updating | ||
| pre-commit-checks: | ||
| name: Pre-commit Checks | ||
| ||||||| last update | ||
| pre-commit: | ||
| ======= | ||
| lint: | ||
| name: Lint | ||
| >>>>>>> after updating | ||
|
Comment on lines
+16
to
+24
|
||
| timeout-minutes: 30 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout branch | ||
| <<<<<<< before updating | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| # needed for 'pre-commit-mirrors-insert-license' | ||
| fetch-depth: 0 | ||
| ||||||| last update | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| ======= | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| >>>>>>> after updating | ||
| - name: Set up pixi | ||
| <<<<<<< before updating | ||
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | ||
| with: | ||
| environments: default lint polars-minimal | ||
|
|
@@ -33,6 +47,19 @@ jobs: | |
| uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 | ||
| - name: pre-commit | ||
| run: pixi run pre-commit-run --color=always --show-diff-on-failure | ||
| ||||||| last update | ||
| uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8 | ||
| with: | ||
| environments: default lint | ||
| - name: pre-commit | ||
| run: pixi run pre-commit-run --color=always --show-diff-on-failure | ||
| ======= | ||
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | ||
| - name: Run linting | ||
| run: pixi run lint | ||
| env: | ||
| CLICOLOR_FORCE: 1 | ||
| >>>>>>> after updating | ||
|
|
||
| unit-tests: | ||
| name: Unit Tests (${{ contains(matrix.os, 'ubuntu') && 'Linux' || (contains(matrix.os, 'windows') && 'Windows' || 'macOS') }}) - ${{ matrix.environment }} | ||
|
|
@@ -41,6 +68,7 @@ jobs: | |
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| <<<<<<< before updating | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
| environment: [py310, py311, py312, py313, py314] | ||
| with_optionals: [false] | ||
|
|
@@ -59,13 +87,46 @@ jobs: | |
| - os: ubuntu-latest | ||
| environment: polars-minimal | ||
| with_optionals: false | ||
| ||||||| last update | ||
| environment: | ||
| - py310 | ||
| - py311 | ||
| - py312 | ||
| - py313 | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| - windows-latest | ||
| ======= | ||
| environment: | ||
| - py310 | ||
| - py311 | ||
| - py312 | ||
| - py313 | ||
| - py314 | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| - windows-latest | ||
| >>>>>>> after updating | ||
| steps: | ||
| - name: Checkout branch | ||
| <<<<<<< before updating | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| ||||||| last update | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| fetch-depth: 0 | ||
| ======= | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| fetch-depth: 0 | ||
| >>>>>>> after updating | ||
| - name: Set up pixi | ||
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | ||
| with: | ||
| environments: ${{ matrix.environment }} | ||
| <<<<<<< before updating | ||
| # FIXME: Remove when `s3_server` fixture does not start a process anymore | ||
| post-cleanup: ${{ matrix.os != 'windows-latest' }} | ||
| - name: Install Rust | ||
|
|
@@ -74,6 +135,11 @@ jobs: | |
| uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 | ||
| - name: Install repository | ||
| run: pixi run -e ${{ matrix.environment }} postinstall | ||
| ||||||| last update | ||
| - name: Install repository | ||
| run: pixi run -e ${{ matrix.environment }} postinstall | ||
|
Comment on lines
136
to
+140
|
||
| ======= | ||
| >>>>>>> after updating | ||
| - name: Run pytest | ||
| run: pixi run -e ${{ matrix.environment }} test-coverage --color=yes ${{ matrix.with_optionals && '-m with_optionals' || '-m "not with_optionals"'}} --cov=dataframely --cov-report=xml | ||
| - name: Upload codecov | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -74,6 +74,12 @@ jobs: | |||||||||||||||||
| # Upload the results to GitHub's code scanning dashboard (optional). | ||||||||||||||||||
| # Commenting out will disable upload of results to your repo's Code Scanning dashboard | ||||||||||||||||||
| - name: "Upload to code-scanning" | ||||||||||||||||||
| <<<<<<< before updating | ||||||||||||||||||
| uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5 | ||||||||||||||||||
| ||||||| last update | ||||||||||||||||||
| uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18 | ||||||||||||||||||
| ======= | ||||||||||||||||||
| uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 | ||||||||||||||||||
| >>>>>>> after updating | ||||||||||||||||||
|
Comment on lines
+77
to
+83
|
||||||||||||||||||
| <<<<<<< before updating | |
| uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5 | |
| ||||||| last update | |
| uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18 | |
| ======= | |
| uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 | |
| >>>>>>> after updating | |
| uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/schema.json | ||
| output: [summary] | ||
| templates: | ||
| run: run --quiet --no-progress | ||
| no_auto_install: true | ||
| pre-commit: | ||
| fail_on_changes: always | ||
| exclude: | ||
| - assets/**/* | ||
| jobs: | ||
| - name: pixi-install | ||
| run: pixi install | ||
| - group: | ||
| parallel: true | ||
| jobs: | ||
| - name: ruff-check | ||
| glob: "*.{py,pyi}" | ||
| run: pixi {run} ruff check --fix --exit-non-zero-on-fix --force-exclude | ||
| - name: ruff-format | ||
| glob: "*.{py,pyi}" | ||
| run: pixi {run} ruff format --force-exclude | ||
| - name: mypy | ||
| glob: "*.py" | ||
| run: pixi {run} mypy {staged_files} | ||
| - name: prettier | ||
| glob: "*.{md,yml,yaml}" | ||
| run: pixi {run} prettier --write --no-error-on-unmatched-pattern --list-different --ignore-unknown {staged_files} | ||
| - name: taplo | ||
| glob: "*.toml" | ||
| run: pixi {run} taplo format {staged_files} | ||
| - name: trailing-whitespace-fixer | ||
| glob: "*" | ||
| file_types: text | ||
| run: pixi {run} trailing-whitespace-fixer {staged_files} | ||
| - name: end-of-file-fixer | ||
| glob: "*" | ||
| file_types: text | ||
| run: pixi {run} end-of-file-fixer {staged_files} | ||
| - name: check-merge-conflict | ||
| glob: "*" | ||
| file_types: text | ||
| run: pixi {run} check-merge-conflict --assume-in-merge {staged_files} | ||
| - name: typos | ||
| glob: "*" | ||
| file_types: text | ||
| run: pixi {run} typos --force-exclude {staged_files} | ||
| - name: zizmor | ||
| glob: "*.{yml,yaml}" | ||
| run: pixi {run} zizmor --no-progress --min-severity high --fix . |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Lockfiles must be consistent with package metadata. After any change to `pixi.toml`, run `pixi lock`. | ||
|
|
||
| Everything runs in a pixi environment. Any command (like `pytest`) must be prefixed with `pixi run` (e.g. `pixi run pytest`). | ||
|
|
||
| Code formatting must align with our standards. Run `pixi run lint` before `git commit`s to ensure this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow expects a
buildpixi environment (environments: build/pixi run -e build ...), butpixi.tomlno longer definesbuildunder[environments]. Add that environment back or switch these steps to an existing environment that includes thebuildfeature/tasks.