From bdc918ed723a9734c153809fb6f7c28d32e432cc Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Aug 2021 10:38:15 +0200 Subject: [PATCH] Yolotry to replace travis tests with github action --- .github/workflow/tox.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 24 ------------------------ 2 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 .github/workflow/tox.yml delete mode 100644 .travis.yml 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