Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,34 @@ on:
branches: [ main ]

jobs:
tests:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
run_tests:
name: tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
python-version: [ '3.11','3.12' ]
permissions:
# Gives the action the necessary permissions for publishing new
# comments in pull requests.
pull-requests: write
# Gives the action the necessary permissions for pushing data to the
# python-coverage-comment-action branch, and for editing existing
# comments (to avoid publishing multiple comments in the same PR)
contents: write

- name: Set up Python
uses: actions/setup-python@v4
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}

- name: Install pip
run: pip install -r requirements/pip.txt

- name: Install development dependencies
run: make requirements
- name: Install Dependencies
run: pip install -r requirements/ci.txt

- name: Tests
- name: Run Tests
run: tox
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38}
envlist = py{311,312}

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


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

[testenv]
deps =
-r{toxinidir}/requirements/test.txt
commands =
pytest --cov xapi_db_load --cov-report term-missing --cov-report xml
pytest {posargs} --full-trace

[testenv:docs]
setenv =
Expand Down