From 7923e81e8513b87cfb549679540b6e9d0ae2fa28 Mon Sep 17 00:00:00 2001 From: Artem Kislovskiy Date: Sun, 14 Apr 2024 16:36:59 +0200 Subject: [PATCH] remove reusable workflow --- ...2023-PyData_Berlin-python-pdf-workflow.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/2023-PyData_Berlin-python-pdf-workflow.yaml b/.github/workflows/2023-PyData_Berlin-python-pdf-workflow.yaml index 02cf95d..3b405aa 100644 --- a/.github/workflows/2023-PyData_Berlin-python-pdf-workflow.yaml +++ b/.github/workflows/2023-PyData_Berlin-python-pdf-workflow.yaml @@ -39,14 +39,24 @@ jobs: lint: name: 🚨 Lint Python code - if: ${{ needs.changes.outputs.PyDataBerlinChanges == 'true' }} + if: needs.changes.outputs.changes == 'true' needs: changes runs-on: ubuntu-latest steps: - - name: Trigger Reusable Workflow - uses: Kislovskiy/talks/.github/workflows/lint_python_reusable.yaml + - name: Setup Python environment + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: - project: "2023_PyData_Berlin" + python-version: ${{ env.PYTHON_VERSION }} + - name: Install dependencies + run: + pip install -r 2023_PyData_Berlin/requirements.txt + - name: Run Black + run: + black 2023_PyData_Berlin --check + - name: Run Flake8 + run: + flake8 --config 2023_PyData_Berlin/.flake8 2023_PyData_Berlin test: name: 🕵 Test Python code