From 87b940a299bcf802936812bb037130c0a0917666 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Thu, 13 May 2021 22:07:26 -0300 Subject: [PATCH] migrate to GitHub Actions --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++ .travis.yml | 41 ------------------------------------- 2 files changed, 34 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..8370852 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Tests + +on: + pull_request: + push: + branches: [master] + +jobs: + run: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: ["2.7", "3.8", "3.9"] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Setup python + uses: actions/setup-python@v2 + + - name: Python ${{ matrix.python-version }} + run: | + pip install coveralls + pip install -e . --force-reinstall + + - name: Tests + run: | + coverage run setup.py test + + # - name: Coveralls + # uses: coverallsapp/github-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 21f60c0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: python - -python: - - 2.7 - - 3.6 - -install: - # Install miniconda - # ----------------- - - export CONDA_BASE=http://repo.continuum.io/miniconda/Miniconda - - if [[ "$TRAVIS_PYTHON_VERSION" == 2* ]]; then - wget ${CONDA_BASE}-3.7.0-Linux-x86_64.sh -O miniconda.sh; - else - wget ${CONDA_BASE}3-3.7.0-Linux-x86_64.sh -O miniconda.sh; - fi - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH="$HOME/miniconda/bin:$PATH" - - # Create the testing environment - # ------------------------------------ - - conda config --set always_yes yes --set changeps1 no - - conda config --set show_channel_urls True - - conda update --quiet conda - - ENV_NAME='test-environment' - - conda create --quiet -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION coveralls - - source activate $ENV_NAME - - # Install the package itself - # -------------------------- - - pip install . - - # Output debug info - # ----------------- - - conda list - - conda info -a - -script: - - coverage run setup.py test - - -after_success: coveralls