From fe8bc38ed2eb8447c2a61aa9de0b9a0b04e49e89 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Aug 2021 13:49:50 +0200 Subject: [PATCH] tests: Try to fix tox-gh-action? --- .github/workflows/tox.yml | 5 +++-- tox.ini | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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