Skip to content

Commit b136df7

Browse files
Merge pull request #19 from lyft/ramonpetgrave64-patch-1
fix CI
2 parents d7b88f0 + 84fb1f1 commit b136df7

File tree

8 files changed

+27
-31
lines changed

8 files changed

+27
-31
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
on: pull_request
22
jobs:
33
pre-commit:
4-
runs-on: ubuntu-18.04
4+
runs-on: ubuntu-22.04
55
steps:
66
- name: Checkout
77
uses: actions/checkout@v1
8-
- name: Setup python 3.6
8+
- name: Setup python 3.8
99
uses: actions/setup-python@v1
1010
with:
11-
python-version: 3.6
11+
python-version: 3.8
1212
- name: Install pre-commit
1313
run: pip install pre-commit
1414
- name: Run pre-commit
1515
run: pre-commit run --all-files
1616
test:
17-
runs-on: ubuntu-18.04
17+
runs-on: ubuntu-22.04
1818
strategy:
1919
matrix:
20-
python-version: ['2.x', '3.6.x', '3.7.x', '3.8.x']
20+
python-version: ['3.7.x', '3.8.x', '3.9.x', '3.10.x', '3.11.x']
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v1

.github/workflows/push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
jobs:
99
build-and-publish-python-module:
1010
name: Build and publish python module to pypi
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v1
15-
- name: Setup python 3.6
15+
- name: Setup python 3.8
1616
uses: actions/setup-python@v1
1717
with:
18-
python-version: 3.6
18+
python-version: 3.8
1919
- name: Add wheel dependency
2020
run: pip install wheel
2121
- name: Generate dist

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exclude: '^docs/.*$'
22
repos:
3-
- repo: https://gitlab.com/pycqa/flake8
3+
- repo: https://github.com/pycqa/flake8
44
rev: 3.7.9
55
hooks:
66
- id: flake8

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ test: test_unit
55

66
test_unit:
77
mkdir -p build
8-
nosetests --with-coverage tests/unit
8+
coverage run -m pytest tests/unit
9+
coverage xml
10+
coverage report

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pep8==1.5.7
2222
# nose makes testing easier
2323
# License: GNU Library or Lesser General Public License (LGPL)
2424
# Upstream url: http://readthedocs.org/docs/nose
25-
nose==1.3.7
25+
# nose==1.3.7
2626

27-
# Mocking and Patching Library for Testing
28-
# License: BSD
29-
# Upstream url: http://www.voidspace.org.uk/python/mock
30-
mock==1.0.1
27+
# Testing library
28+
# License: MIT
29+
# Upstream url: https://github.com/pytest-dev/pytest
30+
pytest==6.2.5

setup.cfg

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
# Project specific configuration used by the following tools:
2-
# - nosetests
2+
# - pytest
33
# - flake8
4-
#
5-
# nosetests only support setup.cfg. flake8 supports both setup.cfg and tox.ini. In
6-
# In order to not have too many files around, we'll use setup.cfg for now.
74

8-
[nosetests]
9-
# Turn this back on if the logs to too spammy.
10-
#nocapture=1
11-
with-xunit = 1
12-
xunit-file = build/nosetests.xml
13-
cover-package = kmsauth
14-
cover-xml = 1
15-
cover-xml-file = build/coverage.xml
16-
cover-min-percentage = 70
5+
6+
[coverage:report]
7+
fail_under = 70
8+
9+
[coverage:xml]
10+
output = build/coverage.xml
1711

1812
[flake8]
1913
# The jenkins violations plugin can read the pylint format.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from setuptools import setup, find_packages
1515

16-
VERSION = "0.6.0"
16+
VERSION = "0.6.1"
1717

1818
requirements = [
1919
# Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK)

tests/unit/kmsauth/kmsauth_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import json
44

55
import unittest
6-
from mock import patch
7-
from mock import MagicMock
6+
from unittest.mock import patch
7+
from unittest.mock import MagicMock
88

99
import kmsauth
1010
from kmsauth.utils import lru

0 commit comments

Comments
 (0)