From 2c97ba09287666c3c3cff7099a9c62376bf61c7b Mon Sep 17 00:00:00 2001 From: Nicolas Marcq Date: Sun, 6 Mar 2022 21:03:24 +0100 Subject: [PATCH] switch CI to Github action --- .../workflows/on-pull-request-workflow.yml | 37 ++++++++++++++ .travis.yml | 49 ------------------- CHANGELOG.md | 8 +++ kalliope/_version.py | 2 +- 4 files changed, 46 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/on-pull-request-workflow.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/on-pull-request-workflow.yml b/.github/workflows/on-pull-request-workflow.yml new file mode 100644 index 00000000..67277e46 --- /dev/null +++ b/.github/workflows/on-pull-request-workflow.yml @@ -0,0 +1,37 @@ +name: On pull request + +on: [pull_request] # set to this value when pushing in prod +#on: [push] # set this one for dev the ci/cd + +jobs: + unit-tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9] + + steps: + - uses: actions/checkout@v2 + + - name: Install system dependencies + run: | + sudo apt update + sudo apt install -y \ + git python3-dev libsmpeg0 libttspico-utils flac \ + libffi-dev libssl-dev portaudio19-dev build-essential \ + libatlas3-base mplayer wget vim sudo locales alsa-base alsa-utils \ + pulseaudio-utils libasound2-plugins python3-pyaudio libasound-dev \ + libportaudio2 libportaudiocpp0 ffmpeg cargo + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install python dependencies + run: | + pip3 install -r install/files/python_requirements.txt + + - name: Run Tests + run: | + python3 -m unittest discover diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 16ba34ab..00000000 --- a/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - -env: - global: - - INSTALL_TYPE=setup - -matrix: - include: - - name: Test in Docker Ubuntu 20.04 - env: - - INSTALL_TYPE=docker - services: - - docker - before_install: - - docker build --force-rm=true -t kalliope-ubuntu2004 -f docker/testing_ubuntu_20_04.dockerfile . - script: - - docker run -it --rm -e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e TRAVIS_EVENT_TYPE=${TRAVIS_EVENT_TYPE} -e TRAVIS_PULL_REQUEST_SLUG=${TRAVIS_PULL_REQUEST_SLUG} -e TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} kalliope-ubuntu2004 - -before_install: - - | - if [ "${INSTALL_TYPE}" == "setup" ]; then - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse" - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse" - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse" - sudo add-apt-repository -y ppa:deadsnakes/ppa # contains libpython3.6-dev - sudo apt-get update -q - sudo apt-get install $(cat install/files/deb-packages_requirements.txt) - sudo apt-get install gcc-5 python3-dev libpython3.6-dev - fi -install: - - | - if [ "${INSTALL_TYPE}" == "setup" ]; then - pip install -r install/files/python_requirements.txt; - pip install coverage python-coveralls; - fi -script: - - | - if [ "${INSTALL_TYPE}" == "setup" ]; then - coverage run --source=kalliope -m unittest discover; - coverage report -m; - fi -after_success: - - | - if [ "${INSTALL_TYPE}" == "setup" ]; then - coveralls - fi diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c798bb5..bf3674be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +v0.7.2 / 2022-03-06 +================== + +- Fix error when trying to save in memory a returned dict +- Added new core neuron: play +- Fix installation on last Raspbian 32 bit +- Added Python 3.9 support + v0.7.1 / 2020-12-06 =================== - Fix: hook pause trigger process was not executed diff --git a/kalliope/_version.py b/kalliope/_version.py index 2d27abe2..20a540af 100644 --- a/kalliope/_version.py +++ b/kalliope/_version.py @@ -1,2 +1,2 @@ # https://www.python.org/dev/peps/pep-0440/ -version_str = "0.7.1" +version_str = "0.7.2"