From 28ce846076efb6284e98b7de50e079b413b9900c Mon Sep 17 00:00:00 2001 From: jefer94 Date: Thu, 10 Aug 2023 01:26:25 -0500 Subject: [PATCH] fix workflow --- .github/workflows/checks.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 6f2e13e73..9f7e4e04f 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Dependencies +name: Checks on: push: {} @@ -9,6 +9,7 @@ on: env: PYTHON_VERSION: 3.11.4 + WORKON_HOME: /home/runner/.virtualenv # setup_dependencies > migrations & dependencies > tests > pages & linter & dockerhub @@ -27,18 +28,18 @@ jobs: PYTHONUNBUFFERED=1 pipenv install --dev - - name: Determine pipenv site-packages directory - run: echo "SITE_PACKAGES_DIR=$(pipenv --venv)/lib/python$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2)/site-packages" >> $GITHUB_ENV + # - name: Determine pipenv site-packages directory + # run: echo "SITE_PACKAGES_DIR=$(pipenv --venv)/lib/python$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2)/site-packages" >> $GITHUB_ENV - name: Upload Python packages as artifact uses: actions/upload-artifact@v3 with: name: python-packages - path: ${{ env.SITE_PACKAGES_DIR }} + path: ${{ env.WORKON_HOME }} - - name: - run: | - echo ${{ env.SITE_PACKAGES_DIR }} + # - name: + # run: | + # echo ${{ env.SITE_PACKAGES_DIR }} migrations: needs: setup_dependencies @@ -58,14 +59,14 @@ jobs: # This is where you'll restore the site-packages. # For clarity, we'll define the path to site-packages again (though it's the same as before). - - name: Define site-packages directory - run: echo "SITE_PACKAGES_DIR=$(pipenv --venv)/lib/python$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2)/site-packages" >> $GITHUB_ENV + # - name: Define site-packages directory + # run: echo "SITE_PACKAGES_DIR=$(pipenv --venv)/lib/python$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2)/site-packages" >> $GITHUB_ENV - name: Download Python packages artifact uses: actions/download-artifact@v3 with: name: python-packages - path: ${{ env.SITE_PACKAGES_DIR }} + path: ${{ env.WORKON_HOME }} - name: Check migrations run: | @@ -93,14 +94,14 @@ jobs: # This is where you'll restore the site-packages. # For clarity, we'll define the path to site-packages again (though it's the same as before). - - name: Define site-packages directory - run: echo "SITE_PACKAGES_DIR=$(pipenv --venv)/lib/python$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2)/site-packages" >> $GITHUB_ENV + # - name: Define site-packages directory + # run: echo "SITE_PACKAGES_DIR=$(pipenv --venv)/lib/python$(python --version | cut -d ' ' -f 2 | cut -d '.' -f 1-2)/site-packages" >> $GITHUB_ENV - name: Download Python packages artifact uses: actions/download-artifact@v3 with: name: python-packages - path: ${{ env.SITE_PACKAGES_DIR }} + path: ${{ env.WORKON_HOME }} - name: Calculate updated MD5 for Pipfile.lock id: calculate-md5-2