diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..2acdc1e --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,31 @@ +name: Build and Test + +on: push + +jobs: + build: + name: Build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + submodules: true + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Upgrade pip + run: python -m pip install --upgrade pip + - name: Install pipenv + run: python -m pip install pipenv + - name: Install project + run: pipenv install --dev + - name: Test + run: pipenv run pytest -v + - name: Generate web content + run: pipenv run python web/web-content.py + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9a943d5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ - -matrix: - include: - - os: osx - osx_image: xcode10.1 - language: sh - env: - - TOXENV=py3 - - HOMEBREW_NO_INSTALL_CLEANUP=1 - - HOMEBREW_NO_ANALYTICS=1 - before_cache: - # - brew cleanup - - rm -f "$HOME/Library/Caches/pip/log/debug.log" - cache: - directories: - # - "$HOME/Library/Caches/Homebrew" - - "$HOME/Library/Caches/pip" - addons: - homebrew: - # update: true - packages: python3 - before_install: - - python3 -m pip install pipenv - - os: linux - language: python - python: "3.7" - dist: xenial - - os: windows - language: sh - python: "3.7" - before_install: - - choco install python3 --params "/InstallDir:C:\\Python" - - export PATH="/c/Python:/c/Python/Scripts:$PATH" - - python -m pip install pipenv - -install: - - pipenv install --dev - -script: -- pipenv run pytest -v -- pipenv run python web/web-content.py \ No newline at end of file diff --git a/README.md b/README.md index 7c0d185..d55e067 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/open205/toolkit-205.svg?branch=develop)](https://travis-ci.org/open205/toolkit-205) +[![Build and Test](https://github.com/open205/toolkit-205/workflows/Build%20and%20Test/badge.svg)](https://github.com/open205/toolkit-205/actions?query=workflow%3A%22Build+and+Test%22) Toolkit 205 ===========