pydantic model generator for atproto lexicons
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use uv sync for CI tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

zzstoatzz cec22c4e 542c0f92

+33 -159
+33 -159
.github/workflows/ci.yml
··· 1 - # This file is autogenerated by maturin v1.10.2 2 - # To update, run 3 - # 4 - # maturin generate-ci github --pytest -o .github/workflows/ci.yml 5 - # 1 + # CI workflow for pmgfal 6 2 name: CI 7 3 8 4 on: 9 5 push: 10 - branches: 11 - - main 12 - - master 13 - tags: 14 - - '*' 6 + branches: [main] 7 + tags: ['*'] 15 8 pull_request: 16 9 workflow_dispatch: 17 10 ··· 20 13 21 14 jobs: 22 15 linux: 23 - runs-on: ${{ matrix.platform.runner }} 16 + runs-on: ubuntu-22.04 24 17 strategy: 25 18 matrix: 26 - platform: 27 - - runner: ubuntu-22.04 28 - target: x86_64 29 - - runner: ubuntu-22.04 30 - target: x86 31 - - runner: ubuntu-22.04 32 - target: aarch64 33 - - runner: ubuntu-22.04 34 - target: armv7 35 - - runner: ubuntu-22.04 36 - target: s390x 37 - - runner: ubuntu-22.04 38 - target: ppc64le 19 + target: [x86_64, aarch64] 39 20 steps: 40 21 - uses: actions/checkout@v4 41 22 - name: Set version from git tag 42 23 if: startsWith(github.ref, 'refs/tags/') 43 24 run: sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" Cargo.toml 44 - - uses: actions/setup-python@v5 45 - with: 46 - python-version: 3.x 47 25 - name: Build wheels 48 26 uses: PyO3/maturin-action@v1 49 27 with: 50 - target: ${{ matrix.platform.target }} 28 + target: ${{ matrix.target }} 51 29 args: --release --out dist --find-interpreter 52 30 sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} 53 31 manylinux: auto 54 32 - name: Upload wheels 55 33 uses: actions/upload-artifact@v4 56 34 with: 57 - name: wheels-linux-${{ matrix.platform.target }} 35 + name: wheels-linux-${{ matrix.target }} 58 36 path: dist 59 - - name: pytest 60 - if: ${{ startsWith(matrix.platform.target, 'x86_64') }} 61 - shell: bash 37 + - name: Install uv 38 + if: matrix.target == 'x86_64' 39 + uses: astral-sh/setup-uv@v7 40 + - name: Test 41 + if: matrix.target == 'x86_64' 62 42 run: | 63 - set -e 64 - python3 -m venv .venv 65 - source .venv/bin/activate 66 - pip install pmgfal --find-links dist --force-reinstall 67 - pip install pytest 68 - pytest 69 - - name: pytest 70 - if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }} 71 - uses: uraimo/run-on-arch-action@v2 72 - with: 73 - arch: ${{ matrix.platform.target }} 74 - distro: ubuntu22.04 75 - githubToken: ${{ github.token }} 76 - install: | 77 - apt-get update 78 - apt-get install -y --no-install-recommends python3 python3-pip 79 - pip3 install -U pip pytest 80 - run: | 81 - set -e 82 - pip3 install pmgfal --find-links dist --force-reinstall 83 - pytest 84 - 85 - musllinux: 86 - runs-on: ${{ matrix.platform.runner }} 87 - strategy: 88 - matrix: 89 - platform: 90 - - runner: ubuntu-22.04 91 - target: x86_64 92 - - runner: ubuntu-22.04 93 - target: x86 94 - - runner: ubuntu-22.04 95 - target: aarch64 96 - - runner: ubuntu-22.04 97 - target: armv7 98 - steps: 99 - - uses: actions/checkout@v4 100 - - name: Set version from git tag 101 - if: startsWith(github.ref, 'refs/tags/') 102 - run: sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" Cargo.toml 103 - - uses: actions/setup-python@v5 104 - with: 105 - python-version: 3.x 106 - - name: Build wheels 107 - uses: PyO3/maturin-action@v1 108 - with: 109 - target: ${{ matrix.platform.target }} 110 - args: --release --out dist --find-interpreter 111 - sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} 112 - manylinux: musllinux_1_2 113 - - name: Upload wheels 114 - uses: actions/upload-artifact@v4 115 - with: 116 - name: wheels-musllinux-${{ matrix.platform.target }} 117 - path: dist 118 - - name: pytest 119 - if: ${{ startsWith(matrix.platform.target, 'x86_64') }} 120 - uses: addnab/docker-run-action@v3 121 - with: 122 - image: alpine:latest 123 - options: -v ${{ github.workspace }}:/io -w /io 124 - run: | 125 - set -e 126 - apk add py3-pip py3-virtualenv 127 - python3 -m virtualenv .venv 128 - source .venv/bin/activate 129 - pip install pmgfal --no-index --find-links dist --force-reinstall 130 - pip install pytest 131 - pytest 132 - - name: pytest 133 - if: ${{ !startsWith(matrix.platform.target, 'x86') }} 134 - uses: uraimo/run-on-arch-action@v2 135 - with: 136 - arch: ${{ matrix.platform.target }} 137 - distro: alpine_latest 138 - githubToken: ${{ github.token }} 139 - install: | 140 - apk add py3-virtualenv 141 - run: | 142 - set -e 143 - python3 -m virtualenv .venv 144 - source .venv/bin/activate 145 - pip install pytest 146 - pip install pmgfal --find-links dist --force-reinstall 147 - pytest 43 + uv sync 44 + uv run pytest -v 148 45 149 46 windows: 150 - runs-on: ${{ matrix.platform.runner }} 151 - strategy: 152 - matrix: 153 - platform: 154 - - runner: windows-latest 155 - target: x64 156 - - runner: windows-latest 157 - target: x86 47 + runs-on: windows-latest 158 48 steps: 159 49 - uses: actions/checkout@v4 160 50 - name: Set version from git tag ··· 163 53 run: | 164 54 $version = $env:GITHUB_REF_NAME -replace '^v', '' 165 55 (Get-Content Cargo.toml) -replace '^version = .*', "version = `"$version`"" | Set-Content Cargo.toml 166 - - uses: actions/setup-python@v5 167 - with: 168 - python-version: 3.x 169 - architecture: ${{ matrix.platform.target }} 170 56 - name: Build wheels 171 57 uses: PyO3/maturin-action@v1 172 58 with: 173 - target: ${{ matrix.platform.target }} 59 + target: x64 174 60 args: --release --out dist --find-interpreter 175 61 sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} 176 62 - name: Upload wheels 177 63 uses: actions/upload-artifact@v4 178 64 with: 179 - name: wheels-windows-${{ matrix.platform.target }} 65 + name: wheels-windows-x64 180 66 path: dist 181 - - name: pytest 182 - if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} 183 - shell: bash 67 + - name: Install uv 68 + uses: astral-sh/setup-uv@v7 69 + - name: Test 184 70 run: | 185 - set -e 186 - python3 -m venv .venv 187 - source .venv/Scripts/activate 188 - pip install pmgfal --find-links dist --force-reinstall 189 - pip install pytest 190 - pytest 71 + uv sync 72 + uv run pytest -v 191 73 192 74 macos: 193 - runs-on: ${{ matrix.platform.runner }} 75 + runs-on: ${{ matrix.runner }} 194 76 strategy: 195 77 matrix: 196 - platform: 78 + include: 197 79 - runner: macos-13 198 80 target: x86_64 199 81 - runner: macos-14 ··· 203 85 - name: Set version from git tag 204 86 if: startsWith(github.ref, 'refs/tags/') 205 87 run: sed -i '' "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" Cargo.toml 206 - - uses: actions/setup-python@v5 207 - with: 208 - python-version: 3.x 209 88 - name: Build wheels 210 89 uses: PyO3/maturin-action@v1 211 90 with: 212 - target: ${{ matrix.platform.target }} 91 + target: ${{ matrix.target }} 213 92 args: --release --out dist --find-interpreter 214 93 sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} 215 94 - name: Upload wheels 216 95 uses: actions/upload-artifact@v4 217 96 with: 218 - name: wheels-macos-${{ matrix.platform.target }} 97 + name: wheels-macos-${{ matrix.target }} 219 98 path: dist 220 - - name: pytest 99 + - name: Install uv 100 + uses: astral-sh/setup-uv@v7 101 + - name: Test 221 102 run: | 222 - set -e 223 - python3 -m venv .venv 224 - source .venv/bin/activate 225 - pip install pmgfal --find-links dist --force-reinstall 226 - pip install pytest 227 - pytest 103 + uv sync 104 + uv run pytest -v 228 105 229 106 sdist: 230 107 runs-on: ubuntu-latest ··· 247 124 release: 248 125 name: Release 249 126 runs-on: ubuntu-latest 250 - if: ${{ startsWith(github.ref, 'refs/tags/') }} 251 - needs: [linux, musllinux, windows, macos, sdist] 127 + if: startsWith(github.ref, 'refs/tags/') 128 + needs: [linux, windows, macos, sdist] 252 129 permissions: 253 - # Use trusted publishing 254 130 id-token: write 255 - # Used to upload release artifacts 256 131 contents: write 257 - # Used to generate artifact attestation 258 132 attestations: write 259 133 steps: 260 134 - uses: actions/download-artifact@v4