diff options
| author | 2022-09-18 01:40:14 +0400 | |
|---|---|---|
| committer | 2022-09-18 01:40:14 +0400 | |
| commit | d6aa129c7b410e1ac31c67fbbaf91e87d9d4749d (patch) | |
| tree | 08acc0a798af24bae4731a55f9d958d9672c0cef /.github | |
| parent | Merge pull request #199 from python-discord/dependabot/pip/spectree-0.10.5 (diff) | |
| parent | Fix Poetry 1.2 Support (diff) | |
Merge pull request #213 from python-discord/poetry-1.2
Fix Poetry 1.2 Support
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/forms-backend.yml | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/.github/workflows/forms-backend.yml b/.github/workflows/forms-backend.yml index 5792cf3..ee061aa 100644 --- a/.github/workflows/forms-backend.yml +++ b/.github/workflows/forms-backend.yml @@ -15,35 +15,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Setup Python - id: python - uses: actions/setup-python@v2 + - name: Install Python Dependencies + uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 with: - python-version: '3.9' - - - name: Setup Poetry - uses: snok/[email protected] - with: - virtualenvs-create: true - virtualenvs-in-project: true - - # When same context exists in cache already, restore this environment. - - name: Poetry Environment Caching - uses: actions/cache@v2 - id: python_cache - with: - path: .venv - key: "venv-${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}" - - # Only install dependencies when cache didn't hit. - - name: Install dependencies - if: steps.python_cache.outputs.cache-hit != 'true' - run: | - poetry install + dev: true + python_version: "3.9" # Use this formatting to show them as GH Actions annotations. - name: Run flake8 - run: "poetry run flake8 --format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s'" + run: | + flake8 --format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s' # Prepare the Pull Request Payload artifact. If this fails, we # we fail silently using the `continue-on-error` option. It's |