mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-18 01:54:11 +02:00
Migrated GitHub actions to UV
This commit is contained in:
24
.github/workflows/update-stats.yml
vendored
24
.github/workflows/update-stats.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user