Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328313?usp=email )

Change subject: [tests] cache GraalPy test dependencies
......................................................................

[tests] cache GraalPy test dependencies

Installing dependencies takes up to 3 minutes;
therefore, cache them.

Change-Id: I81e563d5095b6b74e8b8709ffe8ab0ed3c1783ed
---
A .github/requirements/graalpy_tests.txt
M .github/workflows/graalpy_tests.yml
2 files changed, 15 insertions(+), 11 deletions(-)

Approvals:
  Mahveotm: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Xqt: Verified; Looks good to me, approved




diff --git a/.github/requirements/graalpy_tests.txt 
b/.github/requirements/graalpy_tests.txt
new file mode 100644
index 0000000..1f43ace
--- /dev/null
+++ b/.github/requirements/graalpy_tests.txt
@@ -0,0 +1,12 @@
+beautifulsoup4
+mwparserfromhell
+packaging
+requests
+wikitextparser
+pytest >= 9.0.3
+pytest-attrib
+coverage
+
+# Workarounds for known GraalPy compatibility issues (SSL + charset detection)
+charset_normalizer <= 3.4.5
+urllib3 < 2.7
diff --git a/.github/workflows/graalpy_tests.yml 
b/.github/workflows/graalpy_tests.yml
index 8c93208..a6dfdc8 100644
--- a/.github/workflows/graalpy_tests.yml
+++ b/.github/workflows/graalpy_tests.yml
@@ -38,20 +38,12 @@
         with:
           python-version: ${{ matrix.python-version }}
           allow-prereleases: ${{ endsWith(matrix.python-version, '-dev') }}
+          cache: pip
+          cache-dependency-path: .github/requirements/graalpy_tests.txt
       - name: Install dependencies
         run: |
           pip --version
-          pip install beautifulsoup4
-          pip install mwparserfromhell
-          pip install packaging
-          pip install requests
-          pip install wikitextparser
-          pip install "pytest >= 9.0.3"
-          pip install pytest-attrib
-          pip install coverage
-          # Workaround for known GraalPy compatibility issues (SSL + charset 
detection)
-          pip install "charset_normalizer<=3.4.5"
-          pip install "urllib3<2.7"
+          pip install -r .github/requirements/graalpy_tests.txt
       - name: Install setuptools
         if: ${{ startsWith(matrix.python-version, 'graalpy-25') }}
         run: pip install setuptools

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328313?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I81e563d5095b6b74e8b8709ffe8ab0ed3c1783ed
Gerrit-Change-Number: 1328313
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to