Skip to content

Commit b3c6f3e

Browse files
committed
build: add github actions
Signed-off-by: Adrien Barreau <adrien.barreau@ovhcloud.com>
1 parent 68b096a commit b3c6f3e

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

.github/workflows/test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -e .[dev]
23+
- name: Check black formatting
24+
run: black --check .
25+
- name: Check isort formatting
26+
run: isort --check .
27+
- name: Lint with flake8
28+
run: flake8
29+
- name: Test with pytest
30+
run: pytest --junitxml=junit/test-results.xml --cov=ovh --cov-report=xml --cov-report=html

setup.cfg

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = ovh
33
description = "Official module to perform HTTP requests to the OVHcloud APIs"
44
long_description = file: README.rst
5-
version = 1.0.0
5+
version = 1.0.1
66
author = OVHcloud team - Romain Beuque
77
author_email = api@ml.ovh.net
88
url = https://api.ovh.com
@@ -16,11 +16,11 @@ classifiers =
1616
Operating System :: OS Independent
1717
Programming Language :: Python
1818
Programming Language :: Python :: 3
19-
Programming Language :: Python :: 3.6
2019
Programming Language :: Python :: 3.7
2120
Programming Language :: Python :: 3.8
2221
Programming Language :: Python :: 3.9
2322
Programming Language :: Python :: 3.10
23+
Programming Language :: Python :: 3.11
2424
Topic :: Software Development :: Libraries :: Python Modules
2525
Topic :: System :: Archiving :: Packaging
2626

@@ -39,23 +39,16 @@ exclude =
3939

4040
[options.extras_require]
4141
dev =
42-
coverage==5.5
4342
Sphinx==1.2.2
43+
black
44+
coverage==5.5
4445
coveralls==3.2.0
46+
flake8
47+
isort
48+
pytest==7.2.2
49+
pytest-cov==4.0.0
4550
setuptools>=30.3.0
4651
wheel
47-
pytest
48-
49-
[test]
50-
test-suite = nose.collector
51-
52-
[nosetests]
53-
verbosity = 2
54-
where = tests/
55-
with-yanc = 1
56-
with-coverage = 1
57-
cover-package = ovh
58-
cover-erase = 1
5952

6053
[bdist_wheel]
6154
universal = 1

0 commit comments

Comments
 (0)