diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f937a06b..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,36 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [ master ] - pull_request: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 069dac02..00000000 --- a/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: python - -os: linux - -env: - matrix: - - TEST_PACKAGE="pyclaw" - - TEST_PACKAGE="petclaw" - - TEST_PACKAGE="forestclaw" - -python: - - 3.6.10 - -before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq gfortran liblapack-pic - - sudo apt-get install pv liblapack-dev; - - git clone --branch=master --depth=100 --quiet git://github.com/clawpack/clawpack - - cd clawpack - - git submodule init - - git submodule update clawutil visclaw riemann - - rm -rf pyclaw - - ln -s ../ pyclaw - -install: - - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then - wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; - else - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - fi - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH="$HOME/miniconda/bin:$PATH" - - hash -r - - conda config --set always_yes yes --set changeps1 no --set show_channel_urls yes - - conda install python=$TRAVIS_PYTHON_VERSION - - conda update -q conda - # Useful for debugging any issues with conda - - conda info -a - - conda install -c conda-forge mpich mpi4py - - conda install matplotlib nose coverage - - conda install -c clawpack hdf5-parallel h5py-parallel - - conda install -c conda-forge petsc4py - - conda install -c conda-forge scipy - - conda install -c conda-forge vtk - - conda install -c conda-forge python-coveralls - - python setup.py install - -script: - - cd pyclaw - - bash ./run_tests_on_travis.sh - -after_success: - - coveralls - -notifications: - email: false diff --git a/.travis_build_stack.sh b/.travis_build_stack.sh deleted file mode 100644 index f18f3911..00000000 --- a/.travis_build_stack.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -# Get <#> -git clone https://github.com/hashdist/hashdist -( - cd hashdist - git checkout 231d3ade086c9f176e0bf19a9877d31703a50295 -) -export PATH=`pwd`/hashdist/bin:$PATH -hit init-home - -# a reasonable profile for building petsc4py on Travis -mv ../.stack.yaml stack.yaml - -# 150 MB, shouldn't take too long to download -wget https://www.dropbox.com/s/h0d27lpft4ijpei/hashdist_profile_cache_5kbtllo3bawe.tar.gz -tar -zxf hashdist_profile_cache_5kbtllo3bawe.tar.gz -C ~/.hashdist - -# This should now be very fast -set -o pipefail -hit develop -v stack.yaml 2>&1 | pv -i 15 -n | cat > log.txt -tail -n 60 log.txt diff --git a/README.md b/README.md index 584fd4d8..32813780 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.com/clawpack/pyclaw.svg?branch=master)](https://travis-ci.com/clawpack/pyclaw) +[![Build Status](https://github.com/clawpack/pyclaw/actions/workflows/testing.yml/badge.svg)](https://github.com/clawpack/pyclaw/actions) [![Coverage Status](https://img.shields.io/coveralls/clawpack/pyclaw.svg)](https://coveralls.io/r/clawpack/pyclaw?branch=master) [![PyPI version](https://badge.fury.io/py/clawpack.svg)](https://badge.fury.io/py/clawpack) diff --git a/run_tests_on_travis.sh b/run_tests_on_travis.sh deleted file mode 100755 index 6782fa21..00000000 --- a/run_tests_on_travis.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -# Script to run tests on Travis. This is separate from the file -# .travis.yml so that we can have if statements but make sure -# that failures at intermediate steps are caught (by setting -ev). -# See http://steven.casagrande.io/articles/travis-ci-and-if-statements/ - -set -ev - -cd src/pyclaw -if [ "${TEST_PACKAGE}" == "pyclaw" ]; then - # pyclaw doc-tests - nosetests --first-pkg-wins --with-doctest --exclude=limiters --exclude=sharpclaw --exclude=fileio --exclude=example --with-coverage --cover-package=clawpack.pyclaw; - mv .coverage .coverage.doctest; - # pyclaw examples and I/O tests - nosetests -v --first-pkg-wins --exclude=limiters --exclude=sharpclaw --with-coverage --cover-package=clawpack.pyclaw --include=IOTest; - cd ../../examples; - nosetests -v --with-coverage --cover-package=clawpack.pyclaw; - mv .coverage ../src/pyclaw/.coverage.examples; - cd ../src/pyclaw; - coverage combine; -fi - -if [[ "${TEST_PACKAGE}" == "petclaw" ]]; then - # petclaw I/O tests - cd ../petclaw/tests; - mpirun -n 4 nosetests -v --first-pkg-wins --include=IOTest; - # petclaw examples - cd ../../../examples; - mpirun -n 4 nosetests -v --first-pkg-wins; -fi - -if [[ "${TEST_PACKAGE}" == "forestclaw" ]]; then - # forestclaw tests (I/O only) - cd ../forestclaw; - nosetests --first-pkg-wins; -fi - -