diff options
author | 2021-11-16 23:57:31 +0530 | |
---|---|---|
committer | 2021-11-16 23:57:31 +0530 | |
commit | c25b61e6d9ff3d0353daceba206339ea7ec3cd03 (patch) | |
tree | 3b174993285a5d65122bf1f760c15aac60bc010e /.github/workflows | |
parent | Remove .idea folder. (diff) |
Use HassanAbouelela/actions/setup-python@setup-python_v1.0.0 actions for installing python deps.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/lint.yaml | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 692812cf..270d1dc4 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -32,46 +32,11 @@ jobs: - name: Add custom PYTHONUSERBASE to PATH run: echo '${{ env.PYTHONUSERBASE }}/bin/' >> $GITHUB_PATH - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Setup python - id: python - uses: actions/setup-python@v2 - with: - python-version: '3.9' - - # This step caches our Python dependencies. To make sure we - # only restore a cache when the dependencies, the python version, - # the runner operating system, and the dependency location haven't - # changed, we create a cache key that is a composite of those states. - # - # Only when the context is exactly the same, we will restore the cache. - - name: Python Dependency Caching - uses: actions/cache@v2 - id: python_cache - with: - path: ${{ env.PYTHONUSERBASE }} - key: "python-0-${{ runner.os }}-${{ env.PYTHONUSERBASE }}-\ - ${{ steps.python.outputs.python-version }}-\ - ${{ hashFiles('./pyproject.toml', './poetry.lock') }}" - - # Install our dependencies if we did not restore a dependency cache - - name: Install dependencies using Poetry - if: steps.python_cache.outputs.cache-hit != 'true' - run: | - pip install poetry - poetry install - # This step caches our pre-commit environment. To make sure we - # do create a new environment when our pre-commit setup changes, - # we create a cache key based on relevant factors. - - name: Pre-commit Environment Caching - uses: actions/cache@v2 + - name: Install Python Dependencies + uses: HassanAbouelela/actions/setup-python@setup-python_v1.0.0 with: - path: ${{ env.PRE_COMMIT_HOME }} - key: "precommit-0-${{ runner.os }}-${{ env.PRE_COMMIT_HOME }}-\ - ${{ steps.python.outputs.python-version }}-\ - ${{ hashFiles('./.pre-commit-config.yaml') }}" + dev: false + python_version: 3.9 # We will not run `flake8` here, as we will use a separate flake8 # action. As pre-commit does not support user installs, we set |