diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2baea63 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build +on: [push] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 6 + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@master + - name: Setup conda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: ${{ matrix.python-version }} + - name: Install dependencies + shell: bash -l {0} + run: | + conda install --yes -c conda-forge -c alubbock numpy scipy nose cython pysb pytest + - name: Install PyDREAM + shell: bash -l {0} + run: | + python -m pip install . + - name: Run tests + shell: bash -l {0} + run: | + pytest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 56b7375..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: python -env: -- PYVER=3.8 -- PYVER=3.6 -- PYVER=3.7 -before_install: -- wget http://repo.continuum.io/miniconda/Miniconda${PYVER:0:1}-latest-Linux-x86_64.sh - -O miniconda.sh -- chmod +x miniconda.sh -- bash miniconda.sh -b -p $HOME/miniconda -- export PATH="/home/travis/miniconda/bin:$PATH" -- conda update --yes conda -- conda install --yes -c conda-forge -c alubbock python="$PYVER" numpy scipy nose cython - pysb -install: -- pip install . -script: -- travis_wait 30 nosetests -deploy: - provider: pypi - distributions: sdist bdist_wheel - username: ortega2247 - password: - secure: aGKizWX93p2afLEWW9mGOlhxIOnJ3Aa4U0YViLzY3za/dzA8+IVBwam7YkL88MTlLJ6TaEAcOBTXJ5q24X3wpuZ43rWxO61ZucPqu63q9iHEAEVcPyUKgF4IFGSZyBcZaroSrMtX1sKWNNQB3ZQZy+FilANld5G/aW3CtRl3AAMyMl/BtgJqtEfpFj5jcglB/BZSs+i/+UPgCk0lxrr2MEFO7blWele4XQDubFy0UWegjwlDd90oMvJ6qcF1rZoaNeGR1R1kSnTZpEcS+EsZ8azthytsRqOXiThUylAJhhVKKa5L8HFiuowaI/TShVzEwC6we8BYOMkgwimQW7F4Kn3IeUZM+yXSt2Lmega021v77ygT+7lZBdo6wL6l4g7ihHczqjKJ7xlwFGLPi+wsl/iegUU++ylpDqjzf30uLr3vBSYiYuxTt+DW9PDPb1c/6rXvgwqCfoIbQe60xuz6H1yq5qQnGUrrQe3f44ZpktKSfVzHUWHvTOti/S/HGf+VVVpKNph76SwTyVm4C0tbc5Tg6xtrdmcwz+7Nn08dE2N3aCq+WGwBQWtb4ODsWgbWt5qQoSJY2d2gUVhNZkxe17eKI9jOKCJ5TNUCDkhPy4EBo8Xpg0l+5pSmIQO/8H3FdbqWtM2lbqjYlhEZY/LrMDrpe0Y4wVrrdujIWK9sJUU= - on: - branch: master - tags: true - condition: $PYVER = 3.6