Skip to content

Commit 0f0534a

Browse files
authored
chore: Update Python version for tests to 3.11 & 3.12 (#113)
1 parent e64b602 commit 0f0534a

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,34 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
tests:
11-
runs-on: ubuntu-latest
12-
steps:
13-
14-
- uses: actions/checkout@v3
10+
run_tests:
11+
name: tests
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ ubuntu-20.04 ]
16+
python-version: [ '3.11','3.12' ]
17+
permissions:
18+
# Gives the action the necessary permissions for publishing new
19+
# comments in pull requests.
20+
pull-requests: write
21+
# Gives the action the necessary permissions for pushing data to the
22+
# python-coverage-comment-action branch, and for editing existing
23+
# comments (to avoid publishing multiple comments in the same PR)
24+
contents: write
1525

16-
- name: Set up Python
17-
uses: actions/setup-python@v4
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: setup python
29+
uses: actions/setup-python@v5
1830
with:
19-
python-version: 3.8
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install pip
34+
run: pip install -r requirements/pip.txt
2035

21-
- name: Install development dependencies
22-
run: make requirements
36+
- name: Install Dependencies
37+
run: pip install -r requirements/ci.txt
2338

24-
- name: Tests
39+
- name: Run Tests
2540
run: tox

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{38}
2+
envlist = py{311,312}
33

44
[doc8]
55
; D001 = Line too long
@@ -36,14 +36,14 @@ ignore = D101,D105,D107,D200,D203,D212,D215,D404,D405,D406,D407,D408,D409,D410,D
3636

3737

3838
[pytest]
39-
addopts = --cov xapi_db_load --cov-report term-missing --cov-report xml
39+
addopts = --cov xapi_db_load --cov-report term-missing --cov-report xml --log-level=INFO
4040
norecursedirs = .* docs requirements site-packages
4141

4242
[testenv]
4343
deps =
4444
-r{toxinidir}/requirements/test.txt
4545
commands =
46-
pytest --cov xapi_db_load --cov-report term-missing --cov-report xml
46+
pytest {posargs} --full-trace
4747

4848
[testenv:docs]
4949
setenv =

0 commit comments

Comments
 (0)