diff --git a/.github/workflow/tox.yml b/.github/workflow/tox.yml new file mode 100644 index 00000000..bf24705d --- /dev/null +++ b/.github/workflow/tox.yml @@ -0,0 +1,26 @@ +name: Run tests for Moulinette + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7, 3.9] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + apt install ldap-utils slapd + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 711ac579..00000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: python - -addons: - apt: - packages: - - ldap-utils - - slapd - -matrix: - include: - - python: 3.7 - env: TOXENV=py37-pytest - - python: 3.7 - env: TOXENV=py37-lint - - python: 3.7 - env: TOXENV=format-check - - python: 3.7 - env: TOXENV=docs - -install: - - pip install tox - -script: - - tox