Ver Fonte

chore: modify pipenv installation step

Joao Andre há 1 ano atrás
pai
commit
007272a265
2 ficheiros alterados com 19 adições e 14 exclusões
  1. 10 7
      .github/workflows/overall-tests.yml
  2. 9 7
      .github/workflows/partial-tests.yml

+ 10 - 7
.github/workflows/overall-tests.yml

@@ -12,7 +12,7 @@ jobs:
 
 
   overall-tests:
   overall-tests:
     needs: [partial-tests]
     needs: [partial-tests]
-    timeout-minutes: 40
+    timeout-minutes: 50
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
@@ -27,10 +27,13 @@ jobs:
           python-version: ${{matrix.python-version}}
           python-version: ${{matrix.python-version}}
 
 
       - name: Install pipenv
       - name: Install pipenv
-        run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
+        run: pip install --upgrade pipenv
+
+      - name: Install Setuptools and wheel
+        run: pip install --upgrade setuptools wheel
 
 
       - name: Install Dependencies
       - name: Install Dependencies
-        run: pipenv install --dev --python=${{ matrix.python-version }}
+        run: pipenv install --dev --python=${{ matrix.python-version }} --verbose
 
 
       - name: Setup LibMagic (MacOS)
       - name: Setup LibMagic (MacOS)
         if: matrix.os == 'macos-latest'
         if: matrix.os == 'macos-latest'
@@ -71,10 +74,10 @@ jobs:
           python-version: ${{matrix.python-version}}
           python-version: ${{matrix.python-version}}
 
 
       - name: Install pipenv
       - name: Install pipenv
-        run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
+        run: pip install --upgrade pipenv
 
 
       - name: Install Dependencies
       - name: Install Dependencies
-        run: pipenv install --dev --python=${{ matrix.python-version }}
+        run: pipenv install --dev --python=${{ matrix.python-version }} --verbose
 
 
       - name: Setup LibMagic (MacOS)
       - name: Setup LibMagic (MacOS)
         if: matrix.os == 'macos-latest'
         if: matrix.os == 'macos-latest'
@@ -100,10 +103,10 @@ jobs:
           python-version: ${{matrix.python-version}}
           python-version: ${{matrix.python-version}}
 
 
       - name: Install pipenv
       - name: Install pipenv
-        run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
+        run: pip install --upgrade pipenv
 
 
       - name: Install Dependencies
       - name: Install Dependencies
-        run: pipenv install --dev --python=${{ matrix.python-version }}
+        run: pipenv install --dev --python=${{ matrix.python-version }} --verbose
 
 
       - name: Setup LibMagic (MacOS)
       - name: Setup LibMagic (MacOS)
         if: matrix.os == 'macos-latest'
         if: matrix.os == 'macos-latest'

+ 9 - 7
.github/workflows/partial-tests.yml

@@ -21,7 +21,7 @@ jobs:
       - uses: chartboost/ruff-action@v1
       - uses: chartboost/ruff-action@v1
   tests:
   tests:
     needs: linter
     needs: linter
-    timeout-minutes: 40
+    timeout-minutes: 50
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
@@ -55,12 +55,14 @@ jobs:
       - uses: actions/setup-python@v5
       - uses: actions/setup-python@v5
         with:
         with:
           python-version: ${{matrix.python-version}}
           python-version: ${{matrix.python-version}}
+      - name: Install Setuptools and wheel
+        run: pip install --upgrade setuptools wheel
 
 
       - name: Install pipenv
       - name: Install pipenv
-        run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
+        run: pip install --upgrade pipenv
 
 
       - name: Install Dependencies
       - name: Install Dependencies
-        run: pipenv install --dev --python=${{ matrix.python-version }}
+        run: pipenv install --dev --python=${{ matrix.python-version }} --verbose
 
 
       - name: Setup LibMagic (MacOS)
       - name: Setup LibMagic (MacOS)
         if: matrix.os == 'macos-latest'
         if: matrix.os == 'macos-latest'
@@ -134,11 +136,11 @@ jobs:
 
 
       - name: Install pipenv
       - name: Install pipenv
         if: steps.changes.outputs.core == 'true'
         if: steps.changes.outputs.core == 'true'
-        run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
+        run: pip install --upgrade pipenv
 
 
       - name: Install Dependencies
       - name: Install Dependencies
         if: steps.changes.outputs.core == 'true'
         if: steps.changes.outputs.core == 'true'
-        run: pipenv install --dev --python=${{ matrix.python-version }}
+        run: pipenv install --dev --python=${{ matrix.python-version }} --verbose
 
 
       - name: Setup LibMagic (MacOS)
       - name: Setup LibMagic (MacOS)
         if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'
         if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'
@@ -173,11 +175,11 @@ jobs:
 
 
       - name: Install pipenv
       - name: Install pipenv
         if: steps.changes.outputs.core == 'true'
         if: steps.changes.outputs.core == 'true'
-        run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
+        run: pip install --upgrade pipenv
 
 
       - name: Install Dependencies
       - name: Install Dependencies
         if: steps.changes.outputs.core == 'true'
         if: steps.changes.outputs.core == 'true'
-        run: pipenv install --dev --python=${{ matrix.python-version }}
+        run: pipenv install --dev --python=${{ matrix.python-version }} --verbose
 
 
       - name: Setup LibMagic (MacOS)
       - name: Setup LibMagic (MacOS)
         if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'
         if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'