diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index b3ea5c0861..b86b249f6f 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -42,20 +42,12 @@ jobs: run: | echo ${{ env.URL }} - - name: Set up Python 3.10 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - pip install pytest_dotenv - pip install pytest-reporter-html1 - - - name: Install pre-commit - run: | - pip install pre-commit + python-version: "3.12" + cache: "pip" + - run: pip install -r requirements.txt - name: Install flux run: | @@ -77,10 +69,6 @@ jobs: which kind kind version - - name: Install playwright - run: | - pip install pytest-playwright - - name: Install chromium run: | playwright install chromium diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..3b979fd62d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +flake8==7.1.1 +pre_commit==4.1.0 +pytest==8.3.4 +pytest-dotenv==0.5.2 +pytest-playwright==0.6.2 +pytest-reporter-html1==0.9.2