Skip to content

Commit

Permalink
Fixing test actions (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh authored Feb 19, 2023
1 parent 93c526f commit 07f3db9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -53,4 +53,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
25 changes: 12 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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

6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[tox]
envlist =
py27,
py3,
py35,
py36,
py37,
py38,
py39,
py310,
py311,
pypy,
pypy3,
lint,
Expand All @@ -29,7 +33,7 @@ commands =
deps =
coverage
mock
whitelist_externals =
allowlist_externals =
sh

[testenv:lint]
Expand Down

0 comments on commit 07f3db9

Please sign in to comment.