From d6bfffbc82b23df8426bbf619cb0b101a178d048 Mon Sep 17 00:00:00 2001 From: Yukthi Suresh Date: Thu, 23 Sep 2021 03:38:55 -0500 Subject: [PATCH 01/10] testing github actions --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5ad157c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: build +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: macos-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v2 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file From 9da96aafd15632950d3556d7e7bf0e2661256309 Mon Sep 17 00:00:00 2001 From: Yukthi Suresh Date: Thu, 23 Sep 2021 04:33:08 -0500 Subject: [PATCH 02/10] modified build.yml to accomodate changes --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ad157c..b02ab3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,17 +1,31 @@ name: build on: [push] + jobs: - Explore-GitHub-Actions: - runs-on: macos-latest + 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: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v2 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + - 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 + - name: Install PyDREAM + shell: bash -l {0} + run: | + python -m pip install . + - name: Run nosetests + Run: 30 nosetests \ No newline at end of file From 6a6ba85d12032a148721b76e9b1e6c374c03f6b2 Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 04:34:53 -0500 Subject: [PATCH 03/10] Update build.yml --- .github/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b02ab3f..ffd1b94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,11 +21,10 @@ jobs: - name: Install dependencies shell: bash -l {0} run: | - conda install --yes -c conda-forge -c alubbock numpy scipy nose cython - pysb + conda install --yes -c conda-forge -c alubbock numpy scipy nose cython pysb - name: Install PyDREAM shell: bash -l {0} run: | python -m pip install . - name: Run nosetests - Run: 30 nosetests \ No newline at end of file + Run: 30 nosetests From 0ecd57a0e690d9891de34b0f0842a4f61ee809b2 Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 04:36:24 -0500 Subject: [PATCH 04/10] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffd1b94..554b8cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,4 @@ jobs: run: | python -m pip install . - name: Run nosetests - Run: 30 nosetests + run: 30 nosetests From 00bcbcca771642b55e7f4097fa29f4fdef92ad00 Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 04:39:11 -0500 Subject: [PATCH 05/10] Update build.yml --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 554b8cc..eb67a8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,5 +26,3 @@ jobs: shell: bash -l {0} run: | python -m pip install . - - name: Run nosetests - run: 30 nosetests From bf56071961b8ac7fb998864ad43e240ab52a09fe Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 04:50:48 -0500 Subject: [PATCH 06/10] Update build.yml --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb67a8c..30ed076 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,3 +26,13 @@ jobs: shell: bash -l {0} run: | python -m pip install . + - name: Test with pytest in macos + if: matrix.os == 'macos-latest' + shell: bash -l {0} + run: | + pytest --nbval --sanitize-with docs/pytest-sanitize.ini --cov=pydream + - name: Test with pytest in ubuntu and windows + if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' + shell: bash -l {0} + run: | + pytest --nbval --sanitize-with docs/pytest-sanitize.ini --cov=pydream From 6b89315ef30f3d3c6a9ec232b3f6b979981a4b59 Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 04:57:54 -0500 Subject: [PATCH 07/10] Update build.yml From 16c5114a6918ace63da24f85237e77e1b5a3870a Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 05:01:26 -0500 Subject: [PATCH 08/10] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30ed076..e7663fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies shell: bash -l {0} run: | - conda install --yes -c conda-forge -c alubbock numpy scipy nose cython pysb + conda install --yes -c conda-forge -c alubbock numpy scipy nose cython pysb pytest - name: Install PyDREAM shell: bash -l {0} run: | From e9d65420d40c07a5c32d1afd74f027b4ebd7e168 Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 05:04:15 -0500 Subject: [PATCH 09/10] Update build.yml --- .github/workflows/build.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7663fc..2baea63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,13 +26,7 @@ jobs: shell: bash -l {0} run: | python -m pip install . - - name: Test with pytest in macos - if: matrix.os == 'macos-latest' + - name: Run tests shell: bash -l {0} run: | - pytest --nbval --sanitize-with docs/pytest-sanitize.ini --cov=pydream - - name: Test with pytest in ubuntu and windows - if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' - shell: bash -l {0} - run: | - pytest --nbval --sanitize-with docs/pytest-sanitize.ini --cov=pydream + pytest From 195f670f893bb7ec8349530c26f927d7548405ea Mon Sep 17 00:00:00 2001 From: yukthi-suresh Date: Thu, 23 Sep 2021 06:01:22 -0500 Subject: [PATCH 10/10] Delete .travis.yml --- .travis.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .travis.yml 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