Skip to content

Commit 5e22fca

Browse files
committed
ci: improve python setup in nightly workflow
1 parent b392146 commit 5e22fca

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

.github/workflows/nightly.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,12 @@ jobs:
4242
run: |
4343
echo ${{ env.URL }}
4444
45-
- name: Set up Python 3.10
45+
- name: Set up Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: "3.10"
49-
- name: Install dependencies
50-
run: |
51-
python -m pip install --upgrade pip
52-
pip install flake8 pytest
53-
pip install pytest_dotenv
54-
pip install pytest-reporter-html1
55-
56-
- name: Install pre-commit
57-
run: |
58-
pip install pre-commit
48+
python-version: "3.12"
49+
cache: "pip"
50+
- run: pip install -r requirements.txt
5951

6052
- name: Install flux
6153
run: |
@@ -77,10 +69,6 @@ jobs:
7769
which kind
7870
kind version
7971
80-
- name: Install playwright
81-
run: |
82-
pip install pytest-playwright
83-
8472
- name: Install chromium
8573
run: |
8674
playwright install chromium

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
flake8==7.1.1
2+
pre_commit==4.1.0
3+
pytest==8.3.4
4+
pytest-dotenv==0.5.2
5+
pytest-playwright==0.6.2
6+
pytest-reporter-html1==0.9.2

0 commit comments

Comments
 (0)