Skip to content

The definitive list of the best of (consumer facing) open source.

Migrated GitHub actions to UV

Lucasbb6247c86a1c
diff --git a/.github/workflows/generate-readme.yml b/.github/workflows/generate-readme.yml
index 9e2d745..bdadf87 100644
--- a/.github/workflows/generate-readme.yml
+++ b/.github/workflows/generate-readme.yml
@@ -19,20 +19,24 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: true
+
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
- python-version: '3.x'
+ python-version-file: 'pyproject.toml'
+
+ - name: Install UV
+ uses: astral-sh/setup-uv@v7
- - name: Install dependencies
- run: pip install -r requirements.txt || true
+ - name: Install project
+ run: uv sync --no-dev
- name: Run script to generate README
- run: python ./core/source/generation/readme_generator.py
+ run: uv run ./core/source/generation/readme_generator.py
- name: Commit and push changes
run: |
diff --git a/.github/workflows/status-maintenance.yml b/.github/workflows/status-maintenance.yml
index 2449a64..8727a5d 100644
--- a/.github/workflows/status-maintenance.yml
+++ b/.github/workflows/status-maintenance.yml
@@ -15,26 +15,24 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
- token: ${{ secrets.GITHUB_TOKEN }}
- persist-credentials: true
+ token: ${{ secrets.GITHUB_TOKEN }}
+ persist-credentials: true
- name: Set up Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v6
with:
- python-version: 3.x
+ python-version-file: 'pyproject.toml'
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install requests
+ - name: Install UV
+ uses: astral-sh/setup-uv@v7
+
+ - name: Install project
+ run: uv sync --no-dev
- name: Run status maintenance script
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- python core/source/maintenance/status_checker.py
+ run: uv run core/source/maintenance/status_checker.py
- name: Commit changes
run: |
diff --git a/.github/workflows/update-stats.yml b/.github/workflows/update-stats.yml
index ba5f1c6..36a7a40 100644
--- a/.github/workflows/update-stats.yml
+++ b/.github/workflows/update-stats.yml
@@ -15,26 +15,24 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
- token: ${{ secrets.GITHUB_TOKEN }}
- persist-credentials: true
+ token: ${{ secrets.GITHUB_TOKEN }}
+ persist-credentials: true
- name: Set up Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v6
with:
- python-version: 3.x
+ python-version-file: 'pyproject.toml'
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install requests
+ - name: Install UV
+ uses: astral-sh/setup-uv@v7
+
+ - name: Install project
+ run: uv sync --no-dev
- name: Run update script
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- python core/source/maintenance/stats_updator.py
+ run: uv run core/source/maintenance/stats_updator.py
- name: Commit changes
run: |