mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-20 15:55:44 +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:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Set up Python
|
||||||
run: pip install -r requirements.txt || true
|
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
|
- 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
|
- name: Commit and push changes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
20
.github/workflows/status-maintenance.yml
vendored
20
.github/workflows/status-maintenance.yml
vendored
@@ -15,26 +15,24 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version-file: 'pyproject.toml'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install UV
|
||||||
run: |
|
uses: astral-sh/setup-uv@v7
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install requests
|
- name: Install project
|
||||||
|
run: uv sync --no-dev
|
||||||
|
|
||||||
- name: Run status maintenance script
|
- name: Run status maintenance script
|
||||||
env:
|
run: uv run core/source/maintenance/status_checker.py
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
python core/source/maintenance/status_checker.py
|
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
20
.github/workflows/update-stats.yml
vendored
20
.github/workflows/update-stats.yml
vendored
@@ -15,26 +15,24 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version-file: 'pyproject.toml'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install UV
|
||||||
run: |
|
uses: astral-sh/setup-uv@v7
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install requests
|
- name: Install project
|
||||||
|
run: uv sync --no-dev
|
||||||
|
|
||||||
- name: Run update script
|
- name: Run update script
|
||||||
env:
|
run: uv run core/source/maintenance/stats_updator.py
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
python core/source/maintenance/stats_updator.py
|
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user