File tree Expand file tree Collapse file tree 4 files changed +624
-26
lines changed
Expand file tree Collapse file tree 4 files changed +624
-26
lines changed Original file line number Diff line number Diff line change @@ -21,36 +21,18 @@ jobs:
2121 # Sequence of tasks that will be executed as part of the job
2222 steps :
2323 # Checks-out repository under $GITHUB_WORKSPACE, so the job can access it
24- - uses : actions/checkout@v4
24+ - uses : actions/checkout@v6
2525
26- # Run using Python 3.8 for consistency and aiohttp
27- - name : Set up Python 3.12
28- uses : actions /setup-python@v5
26+ # Set up UV to manage Python versions
27+ - name : Install uv and set python version
28+ uses : astral-sh /setup-uv@v7
2929 with :
30+ enable-cache : true
3031 python-version : ' 3.12'
31- architecture : ' x64'
32-
33- # Cache dependencies. From:
34- # https://github.com/actions/cache/blob/master/examples.md#python---pip
35- - uses : actions/cache@v4
36- with :
37- path : ~/.cache/pip
38- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
39- restore-keys : |
40- ${{ runner.os }}-pip-
41-
42-
43- # Install dependencies with `pip`
44- - name : Install requirements
45- run : |
46- python3 -m pip install --upgrade pip setuptools wheel
47- python3 -m pip install -r requirements.txt
4832
4933 # Generate all statistics images
5034 - name : Generate images
51- run : |
52- python3 --version
53- python3 generate_images.py
35+ run : uv run generate_images.py
5436 env :
5537 ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
5638 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " github-stats-transparent"
3+ version = " 0.1.0"
4+ description = " Add your description here"
5+ readme = " README.md"
6+ requires-python = " >=3.12"
7+ dependencies = [
8+ " aiohttp>=3.13.2" ,
9+ " requests>=2.32.5" ,
10+ ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments