mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
tests: Try to fix tox-gh-action?
This commit is contained in:
parent
7932b8b71c
commit
fe8bc38ed2
2 changed files with 8 additions and 2 deletions
5
.github/workflows/tox.yml
vendored
5
.github/workflows/tox.yml
vendored
|
@ -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
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue