Skip to content

top 1000, try 9

top 1000, try 9 #34

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
paths:
- requirements.txt
- .github/workflows/ci.yaml
jobs:
pip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
requirements.txt
sparse-checkout-cone-mode: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.7'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Lock dependencies
run: pip freeze | awk '{print tolower($0)}' > pip-lock.txt
- name: Upload lock
uses: actions/upload-artifact@v4
with:
name: pip-lock
path: pip-lock.txt
uv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
requirements.txt
sparse-checkout-cone-mode: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.7'
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: ""
version: 'latest'
- name: Freeze dependencies
run: uv pip compile --no-header --no-annotate -v requirements.txt -o uv-lock.txt
- name: Upload freeze
uses: actions/upload-artifact@v4
with:
name: uv-lock
path: uv-lock.txt
diff:
runs-on: ubuntu-latest
needs: [ pip, uv ]
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Show diff
run: diff -u artifacts/uv-lock.txt artifacts/pip-lock.txt || true