diff options
| author | 2022-10-18 20:14:31 +0300 | |
|---|---|---|
| committer | 2022-10-18 20:14:31 +0300 | |
| commit | 6be1686021a8ac204af63a1b68b0ae887f2788df (patch) | |
| tree | dec397fa169dab19976b4c00e335a808e50533b7 /.github | |
| parent | Return None instead of False in try_get_tag (diff) | |
| parent | Merge pull request #2283 from shtlrs/1379-tranform-urls-upon-rich-embed-filte... (diff) | |
Merge branch 'main' into fix-silence-and-tags-when-unloaded
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/lint-test.yml | 62 | 
2 files changed, 5 insertions, 58 deletions
| diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 88abe6fb6..79eef8821 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,7 +30,6 @@ jobs:          uses: actions/checkout@v2          with:            repository: python-discord/kubernetes -          token: ${{ secrets.REPO_TOKEN }}        - name: Authenticate with Kubernetes          uses: azure/k8s-set-context@v1 diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 2b3dd5b4f..a331659e6 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -33,57 +33,16 @@ jobs:        REDDIT_SECRET: ham        REDIS_PASSWORD: '' -      # Configure pip to cache dependencies and do a user install -      PIP_NO_CACHE_DIR: false -      PIP_USER: 1 - -      # Make sure package manager does not use virtualenv -      POETRY_VIRTUALENVS_CREATE: false - -      # Specify explicit paths for python dependencies and the pre-commit -      # environment so we know which directories to cache -      POETRY_CACHE_DIR: ${{ github.workspace }}/.cache/py-user-base -      PYTHONUSERBASE: ${{ github.workspace }}/.cache/py-user-base -      PRE_COMMIT_HOME: ${{ github.workspace }}/.cache/pre-commit-cache - -      # See https://github.com/pre-commit/pre-commit/issues/2178#issuecomment-1002163763 -      # for why we set this. -      SETUPTOOLS_USE_DISTUTILS: stdlib -      steps: -      - 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.10' - -      # 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 +      - name: Install Python Dependencies +        uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1          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 +          # Set dev=true to install flake8 extensions, which are dev dependencies +          dev: true +          python_version: '3.10'        # Check all of our non-dev dependencies are compatible with the MIT license.        # If you added a new dependencies that is being rejected, @@ -94,17 +53,6 @@ jobs:            pip-licenses --allow-only="$ALLOWED_LICENSE" \              --package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ") -      # 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 -        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') }}" -        # We will not run `flake8` here, as we will use a separate flake8        # action. As pre-commit does not support user installs, we set        # PIP_USER=0 to not do a user install. | 
