From f59503494e75a03f8c6d47c184d7de9fef231033 Mon Sep 17 00:00:00 2001 From: Erik Moqvist Date: Tue, 8 Dec 2020 07:55:52 +0100 Subject: [PATCH] Migrate from travis to github. --- .github/workflows/pythonpackage.yml | 38 +++++++++++++++++++++++++++++ .travis.yml | 34 -------------------------- README.rst | 4 --- 3 files changed, 38 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/pythonpackage.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 00000000..971bf8fb --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,38 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.6, 3.9] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install coveralls + - name: Test + run: | + coverage run --source=cantools setup.py test + make test-sdist + env PYTHONPATH=. python examples/hello_world.py + env PYTHONPATH=. python examples/diagnostics/did.py + make test-c-clean + make test-c + make test-c-clean + CC=gcc-8 make test-c + make test-c-clean + CC=clang-8 make test-c-src + - name: Coveralls + uses: AndreMiras/coveralls-python-action@develop diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9550a2d7..00000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: python - -python: - - "3.6" - - "3.8" - -addons: - apt: - update: true - sources: - - llvm-toolchain-trusty-7 - - ubuntu-toolchain-r-test - packages: - - clang-8 - - gcc-8 - -install: - - pip install coveralls - - pip install -r requirements.txt - -script: - - coverage run --source=cantools setup.py test - - make test-sdist - - env PYTHONPATH=. python examples/hello_world.py - - env PYTHONPATH=. python examples/diagnostics/did.py - - make test-c-clean - - make test-c - - make test-c-clean - - CC=gcc-8 make test-c - - make test-c-clean - - CC=clang-8 make test-c-src - -after_success: - coveralls diff --git a/README.rst b/README.rst index 18ba98c3..9d568cfb 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,3 @@ -|buildstatus|_ |appveyor|_ |coverage|_ |nala|_ @@ -292,9 +291,6 @@ Contributing #. Create a pull request. -.. |buildstatus| image:: https://travis-ci.com/eerimoq/cantools.svg?branch=master -.. _buildstatus: https://travis-ci.com/eerimoq/cantools - .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/eerimoq/cantools?svg=true .. _appveyor: https://ci.appveyor.com/project/eerimoq/cantools/branch/master