diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 98b34e78..dddfff09 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -17,9 +17,10 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install apt dependencies + run: sudo apt install ldap-utils slapd + - name: Install tox run: | - sudo apt install ldap-utils slapd python -m pip install --upgrade pip pip install tox tox-gh-actions - name: Test with tox diff --git a/tox.ini b/tox.ini index 67e9d9e0..6280b75b 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,11 @@ commands = py37-pytest: pytest {posargs} -c pytest.ini py37-lint: flake8 moulinette test +[gh-actions] +python = + 3.7: py37 + 3.9: py39 + [testenv:format] basepython = python3 commands = black {posargs} moulinette test