mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-17 21:54:05 +02:00
Migrated GitHub actions to UV
This commit is contained in:
20
.github/workflows/generate-readme.yml
vendored
20
.github/workflows/generate-readme.yml
vendored
@@ -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
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt || true
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version-file: 'pyproject.toml'
|
||||
|
||||
- name: Install UV
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- 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: |
|
||||
|
||||
24
.github/workflows/status-maintenance.yml
vendored
24
.github/workflows/status-maintenance.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 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: |
|
||||
|
||||
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