Skip to content

Commit

Permalink
Applied updates and updated pylintrc to version 2.17 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jul 27, 2023
1 parent d20af9c commit c977f49
Show file tree
Hide file tree
Showing 8 changed files with 430 additions and 375 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['37']
version: ['38']
container:
image: registry.fedoraproject.org/fedora:${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up container
run: |
dnf install -y dnf-plugins-core langpacks-en
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
container:
image: ubuntu:${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
Expand Down
78 changes: 75 additions & 3 deletions .github/workflows/test_tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,91 @@ jobs:
- python-version: '3.7'
toxenv: 'py37'
- python-version: '3.8'
toxenv: 'py38,coverage,codecov'
toxenv: 'py38'
- python-version: '3.9'
toxenv: 'py39'
- python-version: '3.10'
toxenv: 'py310'
- python-version: '3.11'
toxenv: 'py311'
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v3
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get update -q
apt-get install -y libterm-readline-gnu-perl locales software-properties-common
locale-gen en_US.UTF-8
ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
add-apt-repository -y universe
add-apt-repository -y ppa:deadsnakes/ppa
add-apt-repository -y ppa:gift/dev
apt-get update -q
apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools
- name: Install tox
run: |
python3 -m pip install tox
- name: Run tests
env:
LANG: en_US.UTF-8
run: |
tox -e${{ matrix.toxenv }}
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.8'
toxenv: 'py38,coverage'
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v3
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get update -q
apt-get install -y libterm-readline-gnu-perl locales software-properties-common
locale-gen en_US.UTF-8
ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
add-apt-repository -y universe
add-apt-repository -y ppa:deadsnakes/ppa
add-apt-repository -y ppa:gift/dev
apt-get update -q
apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools
- name: Install tox
run: |
python3 -m pip install tox
- name: Run tests with coverage
env:
LANG: en_US.UTF-8
run: |
tox -e${{ matrix.toxenv }}
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
lint:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.11'
toxenv: 'lint'
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
Expand All @@ -50,7 +122,7 @@ jobs:
- name: Install tox
run: |
python3 -m pip install tox
- name: Run tests
- name: Run linter
env:
LANG: en_US.UTF-8
run: |
Expand Down

0 comments on commit c977f49

Please sign in to comment.