Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 913c933

Browse files
committed
CI: Modernize, MOAR Pythons, GH-Actions
Signed-off-by: Stavros Ntentos <[email protected]>
1 parent 6267638 commit 913c933

File tree

5 files changed

+57
-1
lines changed

5 files changed

+57
-1
lines changed

Diff for: .github/workflows/run-tests.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
cache: 'pip'
26+
cache-dependency-path: setup.py
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install tox tox-gh-actions
31+
- name: Test with tox
32+
run: tox
33+
34+
test-36:
35+
runs-on: ubuntu-20.04
36+
steps:
37+
- uses: actions/checkout@v3
38+
- name: Set up Python 3.6
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: 3.6
42+
cache: 'pip'
43+
cache-dependency-path: setup.py
44+
- name: Install dependencies
45+
run: |
46+
python -m pip install --upgrade pip
47+
python -m pip install tox
48+
- name: Test with tox
49+
run: tox

Diff for: .travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ matrix:
1010
env: TOX_ENV=py38
1111
- python: 3.9
1212
env: TOX_ENV=py39
13+
- python: 3.10
14+
env: TOX_ENV=py310
15+
- python: 3.11
16+
env: TOX_ENV=py311
1317

1418
install:
1519
- pip install tox

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint-pytest
22

3+
[![Python package](https://github.com/stdedos/pylint-pytest/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/stdedos/pylint-pytest/actions/workflows/run-tests.yaml)
34
[![PyPI version fury.io](https://badge.fury.io/py/pylint-pytest.svg)](https://pypi.python.org/pypi/pylint-pytest/)
45
[![Travis CI](https://travis-ci.org/reverbc/pylint-pytest.svg?branch=master)](https://travis-ci.org/reverbc/pylint-pytest)
56
[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/reverbc/pylint-pytest?branch=master&svg=true)](https://ci.appveyor.com/project/reverbc/pylint-pytest)

Diff for: setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
'Programming Language :: Python :: 3.7',
4040
'Programming Language :: Python :: 3.8',
4141
'Programming Language :: Python :: 3.9',
42+
'Programming Language :: Python :: 3.10',
43+
'Programming Language :: Python :: 3.11',
4244
'Programming Language :: Python :: Implementation :: CPython',
4345
'Operating System :: OS Independent',
4446
'License :: OSI Approved :: MIT License',

Diff for: tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36,py37,py38,py39
2+
envlist = py36,py37,py38,py39,py310,py311
33
skipsdist = True
44

55
[testenv]

0 commit comments

Comments
 (0)