From 84bea2488a51ed5f354436c61ac2f85c97ee0181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Tue, 11 Jun 2024 07:06:06 +0200 Subject: [PATCH] tests: Switch from Travis CI to GitHub Actions --- .github/workflows/tests.yaml | 25 +++++++++++++++++++++++++ .travis.yml | 16 ---------------- 2 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/tests.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..7a073af --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,25 @@ +--- + +name: Tests + +on: + push: + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + lint: + name: Tests + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + - run: pip install flake8 flake8-import-order + - run: flake8 . + - run: python -m unittest discover tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 87c2b85..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -arch: - - amd64 - - ppc64le -python: - - 3.5 - - 3.6 - - 3.7 - - 3.8 - - 3.9-dev - - nightly -install: - - pip install flake8 flake8-import-order -script: - - flake8 . - - nosetests