Selaa lähdekoodia

Added a step to install mandatory Python packages as part of the publishing process.

Jean-Robin 1 kuukausi sitten
vanhempi
säilyke
0e29b77f88
2 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 5 0
      .github/workflows/publish.yml
  2. 1 1
      tools/release/common.py

+ 5 - 0
.github/workflows/publish.yml

@@ -37,6 +37,11 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
+      - name: Install mandatory Python packages
+        run: |
+          python -m pip install --upgrade pip
+          pip install requests
+
       - name: Verify if all releases exist
         run: |
           python tools/release/check_releases.py dist ${{ github.event.inputs.version }}

+ 1 - 1
tools/release/common.py

@@ -239,7 +239,7 @@ def retrieve_github_path() -> t.Optional[str]:
 def fetch_github_releases(gh_path: t.Optional[str] = None) -> dict[Package, list[Version]]:
     # Retrieve all available releases (potentially paginating results) for all packages.
     # Returns a dictionary of package_short_name-Value pairs.
-    # Note for reviewers: using a Package as the dictionary is is cumbersome in the rest of the
+    # Note for reviewers: using a Package as the dictionary is cumbersome in the rest of the
     # code.
     all_releases: dict[str, list[Version]] = {}
     if gh_path is None: