diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000000..a3c6d464e12d --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,30 @@ +name: Coverage +on: + push: + branches: + - 'develop' +jobs: + coverage_tests_on_python: + strategy: + fail-fast: false + matrix: + python-version: ['3.6', '3.7', '3.8', '3.9'] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Installing python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Installing dependencies + run: | + pip install coverage tensorflow + pip install -e ./ + - name: Code instrumentation + run: | + coverage run -m unittest discover -v + coverage run -a datum.py -h + coverage xml + - name: Sending coverage results + run: | + bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml -t ${{ secrets.CODACY_PROJECT_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000000..5689e72d74fe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' +jobs: + build_and_tests_on_python: + strategy: + fail-fast: false + matrix: + python-version: ['3.6', '3.7', '3.8', '3.9'] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Installing python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Installing dependencies + run: | + pip install tensorflow + pip install -e ./ + - name: Unit testing + run: | + python -m unittest discover -v + datum -h diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6b9f252237a1..000000000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: python - -cache: pip - -python: - - '3.6' - - '3.7' - - '3.8' - -matrix: - include: - - dist: xenial - - # measure coverage here - - dist: bionic - python: '3.6' - before_install: - - pip install coverage - script: - - coverage run -m unittest discover -v - - coverage run -a datum.py -h - after_success: - - coverage xml - - bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml - - - dist: bionic - python: '3.7' - - dist: bionic - python: '3.8' - -install: - - pip install -e ./ - - pip install tensorflow - - pip install pandas - -script: - - python -m unittest discover -v - - datum -h \ No newline at end of file