tests: Try to fix tox-gh-action?

This commit is contained in:
Alexandre Aubin 2021-08-20 13:49:50 +02:00
parent 7932b8b71c
commit fe8bc38ed2
2 changed files with 8 additions and 2 deletions

View file

@ -17,9 +17,10 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install apt dependencies
run: sudo apt install ldap-utils slapd
- name: Install tox
run: | run: |
sudo apt install ldap-utils slapd
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install tox tox-gh-actions pip install tox tox-gh-actions
- name: Test with tox - name: Test with tox

View file

@ -17,6 +17,11 @@ commands =
py37-pytest: pytest {posargs} -c pytest.ini py37-pytest: pytest {posargs} -c pytest.ini
py37-lint: flake8 moulinette test py37-lint: flake8 moulinette test
[gh-actions]
python =
3.7: py37
3.9: py39
[testenv:format] [testenv:format]
basepython = python3 basepython = python3
commands = black {posargs} moulinette test commands = black {posargs} moulinette test