
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary `uv` is great. So we should use it where we can. The cache had to be removed because the workflow breaks currently. https://github.com/actions/setup-python/issues/822 When this is solved, caching can be brought back in. ## Test Plan Ran workflow on my local repo.
38 lines
870 B
YAML
38 lines
870 B
YAML
name: main
|
|
on:
|
|
schedule:
|
|
- cron: "0 */4 * * *"
|
|
workflow_dispatch:
|
|
repository_dispatch:
|
|
types: [pypi_release]
|
|
|
|
jobs:
|
|
build:
|
|
name: main
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- if: ${{ startsWith(github.event_name, 'repository_dispatch') }}
|
|
run: sleep 30
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: download uv
|
|
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
- run: uv pip install --system -r requirements-dev.txt
|
|
|
|
- name: set git config
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- run: python mirror.py
|
|
|
|
- run: |
|
|
git push origin HEAD:refs/heads/main
|
|
git push origin HEAD:refs/heads/main --tags
|