From 4ea176f82508e20512e9a86951f9993be002882c Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Mon, 25 Apr 2022 20:52:39 +0200 Subject: [PATCH] flake8 --- .github/workflows/lint.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 57e1f06..0e50953 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: Lint +name: lint on: push: @@ -7,15 +7,24 @@ on: jobs: flake8_py3: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.9.9] + poetry-version: [1.1.12] + os: [ubuntu-18.04] + runs-on: ${{ matrix.os }} steps: - - name: Setup Python - uses: actions/setup-python@v1 + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 with: - python-version: 3.9.9 - architecture: x64 - - name: Checkout Stacosys - uses: actions/checkout@master + python-version: ${{ matrix.python-version }} + - name: Run image + uses: abatilo/actions-poetry@v2.0.0 + with: + poetry-version: ${{ matrix.poetry-version }} + - name: Install dependencies + run: poetry install - name: Install flake8 run: pip install flake8 - name: Run flake8 @@ -23,4 +32,4 @@ jobs: with: checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }} \ No newline at end of file