From 23840b68d760a2289c49c63653ba544462afbaf2 Mon Sep 17 00:00:00 2001 From: Hugo Gomes Date: Wed, 24 May 2023 11:30:20 +0100 Subject: [PATCH] fix: remove py2.7 github.com/actions/runner-images/issues/7401 --- .github/workflows/deploy.yml | 2 +- .github/workflows/main.yml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5f9e915..3f3bcb7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ jobs: name: Build strategy: matrix: - python-version: [2.7] + python-version: [3.5] runs-on: ubuntu-latest container: python:${{ matrix.python-version }} steps: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d67295b..835d31f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,23 +5,22 @@ jobs: name: Build strategy: matrix: - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "rc"] + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "rc"] runs-on: ubuntu-latest container: python:${{ matrix.python-version }} steps: - uses: actions/checkout@v1 - run: python --version - run: pip install -r requirements.txt - if: matrix.python-version != '2.7' - run: | pip install pylint curl https://raw.githubusercontent.com/ripe-tech/pylint-config/master/pylintrc --output pylintrc PYTHONPATH=src pylint src/un1qnx - if: matrix.python-version != '2.7' && matrix.python-version != '3.5' + if: matrix.python-version != '3.5' - run: | pip install black black . --check --config ./pyproject.toml - if: matrix.python-version != '2.7' && matrix.python-version != '3.5' + if: matrix.python-version != '3.5' - run: python setup.py test env: TEST_CLIENT_ID : ${{ secrets.TEST_CLIENT_ID }}