From 07f3db997a7ff4657f840eb5ef4b171d93aba3c9 Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Sun, 19 Feb 2023 21:21:25 +0100 Subject: [PATCH] Fixing test actions (#326) --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/tests.yml | 25 ++++++++++++------------- tox.ini | 6 +++++- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 44c8522e..478842f4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -24,11 +24,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -39,7 +39,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -53,4 +53,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7546d999..8bd10838 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,12 +19,6 @@ jobs: - name: "Pypy 2.7" python-version: 'pypy-2.7' toxenv: 'pypy' - - name: "Python 3.6" - python-version: '3.6' - toxenv: 'py3' - - name: "Pypy 3.6" - python-version: 'pypy-3.6' - toxenv: 'pypy3' - name: "Python 3.7" python-version: '3.7' toxenv: 'py3' @@ -37,11 +31,16 @@ jobs: - name: "Python 3.9" python-version: '3.9' toxenv: 'py3' - + - name: "Python 3.10" + python-version: '3.10' + toxenv: 'py3' + - name: "Python 3.11" + python-version: '3.11' + toxenv: 'py3' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -55,19 +54,19 @@ jobs: run: | tox - name: Linting - if: ${{ matrix.python-version==3.9 }} + if: ${{ matrix.python-version==3.11 }} env: TOXENV: lint run: | tox - name: Run Codecov - if: ${{ matrix.python-version==3.9 }} + if: ${{ matrix.python-version==3.11 }} env: TOXENV: lint run: | pip install codecov codecov - name: Upload coverage to Codecov - if: ${{ matrix.python-version==3.9 }} - uses: codecov/codecov-action@v1 + if: ${{ matrix.python-version==3.11 }} + uses: codecov/codecov-action@v3 diff --git a/tox.ini b/tox.ini index 38a3e494..99c6c47d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,14 @@ [tox] envlist = py27, + py3, py35, py36, py37, py38, + py39, + py310, + py311, pypy, pypy3, lint, @@ -29,7 +33,7 @@ commands = deps = coverage mock -whitelist_externals = +allowlist_externals = sh [testenv:lint]