@@ -14,14 +14,17 @@ jobs:
14
14
permissions :
15
15
contents : write
16
16
steps :
17
- - uses : actions/checkout@v4
18
- - uses : actions/setup-python@v5
17
+ - name : checkout
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Install uv
21
+ uses : astral-sh/setup-uv@v5
19
22
with :
20
23
python-version : ' 3.11'
24
+
21
25
- name : install dependencies
22
26
run : |
23
- python -m pip install --upgrade pip
24
- pip install -r requirements.txt
27
+ uv pip install -r requirements.txt
25
28
- name : update
26
29
env :
27
30
CW_COOKIE : ${{ secrets.CW_COOKIE }}
32
35
file_pattern : ' output/*.py'
33
36
branch : master
34
37
commit_message : Automated update
38
+
39
+ update-readme :
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - uses : actions/checkout@v4
43
+
44
+ - name : Install uv
45
+ uses : astral-sh/setup-uv@v5
46
+
47
+ - name : Install the project
48
+ run : uv sync --group actions --all-extras --dev
49
+
50
+ - name : Install Chrome
51
+ uses : browser-actions/setup-chrome@v1
52
+ with :
53
+ chrome-version : stable
54
+
55
+ - name : Install Chrome WebDriver
56
+ uses : nanasess/setup-chromedriver@v2
57
+
58
+ - name : Start Chrome Driver
59
+ run : |
60
+ chromedriver --version
61
+ chrome --version
62
+
63
+ - name : Take Screenshot
64
+ env :
65
+ CW_COOKIE : ${{ secrets.CW_COOKIE }}
66
+ run : |
67
+ uv run .github/scripts/take_screenshot.py
68
+
69
+ - name : Commit and Push Changes
70
+ uses : stefanzweifel/git-auto-commit-action@v5
71
+ with :
72
+ commit_message : " Update screenshot in README"
73
+ file_pattern : screenshots/*.png
0 commit comments