diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..797bc3a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: ci + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-18.04 + steps: + # Checkout Repository + - name: Checkout + uses: actions/checkout@v2 + + # Install Tools + - name: Install Tools + run: | + sudo apt-get install wget build-essential python3 + pip3 install setuptools + + # Install (n)Migen / LiteX / Cores + - name: Install LiteX + run: | + wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py + python3 litex_setup.py init install --user + + # Install Project + - name: Install Project + run: python3 setup.py develop --user + + # Test + - name: Run Tests + run: python3 setup.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0017c82..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -dist: Xenial -python: "3.6" - -install: - # Get Migen / LiteX / Cores - - cd ~/ - - wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py - - python3 litex_setup.py init install - # Install the version being tested - - cd $TRAVIS_BUILD_DIR - - python3 setup.py install - -script: - - cd $TRAVIS_BUILD_DIR - - python setup.py test diff --git a/README.md b/README.md index 9f30a69..d5bb57b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ powered by Migen & LiteX ``` -[![](https://travis-ci.com/enjoy-digital/liteeth.svg?branch=master)](https://travis-ci.com/enjoy-digital/liteeth) ![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg) +[![](https://github.com/enjoy-digital/liteeth/workflows/ci/badge.svg)](https://github.com/enjoy-digital/liteeth/actions) ![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg) [> Intro