Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive Adams #1

Open
wants to merge 31 commits into
base: cory-adams-moulton
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6957a36
Move adaptive timestep test into testing utilities
cmikida2 Nov 2, 2020
bb3e713
Add implicit-explicit embedded Adams method with adaptivity, as well as
cmikida2 Nov 2, 2020
a30efeb
Propagating changes from modifying implicit Adams PR
cmikida2 Nov 23, 2020
ce5dcf9
Switch to furo doc theme
inducer Dec 2, 2020
842e363
Merge branch 'furo-doc-theme' into 'master'
inducer Dec 2, 2020
b2ac2a8
Shorten/standardize doc/conf
inducer Jan 4, 2021
d30ba46
Merge branch 'inducer-master-patch-28576' into 'master'
inducer Jan 4, 2021
aa148b5
CI/README: master->main
inducer Mar 8, 2021
70107c2
Merge pull request #14 from inducer/master-to-main
inducer Mar 8, 2021
f458cd8
Run flake8 in Github CI on target Py version
inducer Apr 8, 2021
8040cf2
Merge pull request #15 from inducer/github-ci-compat-target
inducer Apr 8, 2021
b28f01e
Add Gitlab autopush
inducer Apr 8, 2021
7eb16bc
Mark import in implicit Euler as relative for pylint's benefit
inducer Apr 25, 2021
e63d155
Enable flake8-bugbear
inducer May 12, 2021
af42764
Add conda CI jobs
inducer May 12, 2021
9eff8b6
Bump CI Python versions to 3.6, 3.8, 3.x
inducer May 12, 2021
73e6c1d
Fix ci-support URL typo
inducer May 12, 2021
597d7e7
Oops: Actually add conda env file for CI
inducer May 12, 2021
d085623
Conda Github CI: Install matplotlib
inducer May 12, 2021
e4d455d
Only use matplotlib-base in test env
inducer May 21, 2021
dde2696
Drop autodoc_typehints from sphinx config
inducer May 22, 2021
f6ed5f8
Merge pull request #22 from inducer/drop-autodoc_typehints
inducer May 22, 2021
acb8c41
Add #egg= annotations to requirements.txt
inducer May 28, 2021
84ccc49
Black setup.py
inducer May 29, 2021
2af3861
Fix url in setup.py
inducer May 29, 2021
c58dd47
Add MANIFEST.in
inducer May 29, 2021
02d8bdc
Bump version to 2021.1
inducer May 29, 2021
7bd097b
Document MethodBuilder
inducer Jun 3, 2021
94f07be
Use downloaded shared sphinxconfig
inducer Jun 25, 2021
599a74a
Merge branch 'main' into adaptive-adams
cmikida2 Aug 31, 2021
23fcb50
Minor tolerance tweak on failing test
cmikida2 Aug 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/autopush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Gitlab mirror
on:
push:
branches:
- main

jobs:
autopush:
name: Automatic push to gitlab.tiker.net
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir ~/.ssh && echo -e "Host gitlab.tiker.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
eval $(ssh-agent) && echo "$GITLAB_AUTOPUSH_KEY" | ssh-add -
git fetch --unshallow
git push "[email protected]:inducer/$(basename $GITHUB_REPOSITORY).git" main
env:
GITLAB_AUTOPUSH_KEY: ${{ secrets.GITLAB_AUTOPUSH_KEY }}

# vim: sw=4
57 changes: 48 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on:
push:
branches:
- master
- main
pull_request:
paths-ignore:
- 'doc/*.rst'
Expand All @@ -18,10 +18,11 @@ jobs:
-
uses: actions/setup-python@v1
with:
python-version: '3.x'
# matches compat target in setup.py
python-version: '3.6'
- name: "Main Script"
run: |
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh
. ./prepare-and-run-flake8.sh "$(basename $GITHUB_REPOSITORY)" test examples

pylint:
Expand All @@ -35,15 +36,15 @@ jobs:
python-version: '3.x'
- name: "Main Script"
run: |
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-pylint.sh
. ./prepare-and-run-pylint.sh "$(basename $GITHUB_REPOSITORY)" test examples

pytest:
name: Pytest on Py${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: ["3.6", "3.8", "3.x"]
steps:
- uses: actions/checkout@v2
-
Expand All @@ -56,15 +57,33 @@ jobs:
sudo apt update
sudo apt install gfortran-7 liblapack-dev libblas-dev
sudo ln -sf /usr/bin/gfortran-7 /usr/bin/gfortran
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
. ./build-and-test-py-project.sh

pytest_conda:
name: Pytest Conda
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Main Script"
run: |
CONDA_ENVIRONMENT=.test-conda-env-py3.yml
curl -L -O -k https://tiker.net/ci-support-v0
. ./ci-support-v0
build_py_project_in_conda_env

sudo apt update
sudo apt install gfortran-7 liblapack-dev libblas-dev
sudo ln -sf /usr/bin/gfortran-7 /usr/bin/gfortran

test_py_project

examples:
name: Examples on Py${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: ["3.6", "3.8", "3.x"]
steps:
- uses: actions/checkout@v2
-
Expand All @@ -74,12 +93,32 @@ jobs:
- name: "Main Script"
run: |
EXTRA_INSTALL="numpy matplotlib scipy"

sudo apt update
sudo apt install gfortran-7 liblapack-dev libblas-dev
sudo ln -sf /usr/bin/gfortran-7 /usr/bin/gfortran
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-py-project-and-run-examples.sh

curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-py-project-and-run-examples.sh
. ./build-py-project-and-run-examples.sh

examples_conda:
name: Examples Conda
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Main Script"
run: |
CONDA_ENVIRONMENT=.test-conda-env-py3.yml
curl -L -O -k https://tiker.net/ci-support-v0
. ./ci-support-v0
build_py_project_in_conda_env

sudo apt update
sudo apt install gfortran-7 liblapack-dev libblas-dev
sudo ln -sf /usr/bin/gfortran-7 /usr/bin/gfortran

run_examples

docs:
name: Documentation
runs-on: ubuntu-latest
Expand All @@ -92,7 +131,7 @@ jobs:
- name: "Main Script"
run: |
EXTRA_INSTALL="numpy"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support.sh
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ci-support.sh
build_py_project_in_venv
build_docs
Expand Down
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Python 3:
script:
- py_version=3
- EXTRA_INSTALL="numpy scipy"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python3
Expand All @@ -17,7 +17,7 @@ Python 3 Examples:
script:
- py_version=3
- EXTRA_INSTALL="numpy scipy matplotlib"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-py-project-and-run-examples.sh
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-py-project-and-run-examples.sh
- ". ./build-py-project-and-run-examples.sh"
tags:
- python3
Expand All @@ -31,7 +31,7 @@ Pylint:
script: |
export PY_EXE=python3
EXTRA_INSTALL="numpy scipy"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-pylint.sh
. ./prepare-and-run-pylint.sh "$CI_PROJECT_NAME" test examples
tags:
- python3
Expand All @@ -41,14 +41,14 @@ Pylint:
Documentation:
script:
- EXTRA_INSTALL="numpy"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-docs.sh
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-docs.sh
- ". ./build-docs.sh"
tags:
- python3

Flake8:
script: |
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh
. ./prepare-and-run-flake8.sh "$CI_PROJECT_NAME" test examples
tags:
- python3
Expand Down
13 changes: 13 additions & 0 deletions .test-conda-env-py3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: test-conda-env
channels:
- conda-forge
- nodefaults

dependencies:
- python=3
- git
- numpy
- scipy
- matplotlib-base

- pip
11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
recursive-include examples *.py

include test/*.f90
include test/conftest.py
include test/utils.py
include test/*_test_systems.py

include doc/*.rst
include doc/conf.py
include doc/Makefile
include doc/make.bat
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
leap: Descriptive Time Integration with Flexbile Multi-Rate Algorithms
======================================================================

.. image:: https://gitlab.tiker.net/inducer/leap/badges/master/pipeline.svg
.. image:: https://gitlab.tiker.net/inducer/leap/badges/main/pipeline.svg
:alt: Gitlab Build Status
:target: https://gitlab.tiker.net/inducer/leap/commits/master
.. image:: https://github.com/inducer/leap/workflows/CI/badge.svg?branch=master&event=push
:target: https://gitlab.tiker.net/inducer/leap/commits/main
.. image:: https://github.com/inducer/leap/workflows/CI/badge.svg?branch=main&event=push
:alt: Github Build Status
:target: https://github.com/inducer/leap/actions?query=branch%3Amaster+workflow%3ACI+event%3Apush
:target: https://github.com/inducer/leap/actions?query=branch%3Amain+workflow%3ACI+event%3Apush
.. image:: https://badge.fury.io/py/leap.png
:alt: Python Package Index Release Page
:target: https://pypi.org/project/leap/
Expand Down
Loading