chore(deps): lock file maintenance #5108
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: "1" | |
| jobs: | |
| nix: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - "310" | |
| - "311" | |
| - "312" | |
| - "313" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable-small | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: numbsql | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| extraPullNames: nix-community | |
| - name: build | |
| run: nix build --no-link --keep-going '.#numbsql${{ matrix.python-version }}' | |
| - name: test | |
| run: nix build --no-link --keep-going '.#numbsql${{ matrix.python-version }}.passthru.tests.pytest' | |
| - name: show closure size | |
| run: | | |
| set -euo pipefail | |
| nix path-info -Shr '.#numbsql${{ matrix.python-version }}' | sort -h -k2 | |
| uv: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: run tests | |
| run: uv run --group tests pytest -vv | |
| env: | |
| NUMBA_CAPTURED_ERRORS: new_style | |
| dry-run-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: cachix/install-nix-action@9280e7aca88deada44c930f1e2c78e21c3ae3edd # v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable-small | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: numbsql | |
| extraPullNames: nix-community | |
| - name: setup git info | |
| run: | | |
| set -euo pipefail | |
| git config user.name 'phillip-ground[bot]' | |
| git config user.email 'phillip-ground[bot]@users.noreply.github.com' | |
| - name: dry run semantic-release | |
| run: ./ci/release/dry_run.sh | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - uv | |
| - dry-run-release | |
| - nix | |
| steps: | |
| - uses: actions/[email protected] | |
| id: generate_token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.generate_token.outputs.token }} | |
| persist-credentials: false | |
| - uses: cachix/install-nix-action@9280e7aca88deada44c930f1e2c78e21c3ae3edd # v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable-small | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: numbsql | |
| extraPullNames: nix-community | |
| - name: run semantic-release | |
| run: ./ci/release/run.sh | |
| env: | |
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
| GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} |