Skip to content

Commit

Permalink
Merge abc29eb into 9e319f5
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelcastillo21 committed Oct 27, 2022
2 parents 9e319f5 + abc29eb commit 88031d9
Show file tree
Hide file tree
Showing 43 changed files with 19,034 additions and 414 deletions.
52 changes: 45 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Test build process
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -36,22 +36,60 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade wheel setuptools setuptools_scm
- name: Inspect version info
run: |
python setup.py --version
git describe --dirty --tags --long --match "*[0-9]*"
- name: Test pip install syntax (without wheels)
- name: Test pip install to site-packages
run: |
pip install .
pip uninstall -y mud
- name: Install dependencies
- name: Test pip install local
run: |
pip install --upgrade pip
pip install --upgrade wheel setuptools setuptools_scm
- name: Test install with wheels
pip install -e .
pip uninstall -y mud
- name: Test build
run: |
python setup.py sdist bdist_wheel
pip uninstall -y mud
style:
name: Enforce style
strategy:
matrix:
python-version: ["3.10"]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: setup
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: install
run: |
pip install --upgrade pip
pip install -e .[dev]
- name: linting
run: flake8 .

- name: imports
run: isort -c .

- name: typing
run: |
mypy src/mud/
37 changes: 28 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ on:
- cron: "0 0 */7 * *"

jobs:
test:
unit-tests:
name: Run unit tests
strategy:
matrix:
python-version: [3.6, 3.9]
python-version: ["3.7", "3.10"]
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
with:
Expand All @@ -45,14 +44,34 @@ jobs:
- name: Run unit tests
run: pytest

- name: Upload coverage to codecov.io
if: ${{ matrix.python-version }} == 3.9
run: |
export CODECOV_VERSION=${{ secrets.codecov_token }}
bash <(curl -s https://codecov.io/bash)
- name: Upload coverage to coveralls.io
if: ${{ matrix.python-version }} == 3.9
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

integration-tests:
name: Run integration tests
strategy:
matrix:
python-version: ["3.9"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade mud-examples
pip install -e .
- name: Check examples
run: mud_run_all -v
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: "Publish to PyPI"
strategy:
matrix:
python-version: [3.8]
python-version: ["3.9"]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -27,7 +27,7 @@ jobs:
run: pip install --upgrade pip

- name: Install build tools
run: pip install .[pub]
run: pip install --upgrade .[pub]

- name: Build dist
run: |
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ MANIFEST
# Per-project virtualenvs
.venv*/

# Data and figure dirs in notebooks
notebooks/*_datasets/*
notebooks/figs/*
notebooks/*.pickle
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Contributors
============

* Mathematical Michael <consistentbayes@gmail.com>
* Carlos del-Castillo-Negrete <cdelcastillo21@gmail.com>
Binary file added data/adcirc-si
Binary file not shown.
Binary file added data/poisson_data
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import os
import sys
import inspect
import os
import shutil
import sys

# -- Path setup --------------------------------------------------------------

Expand Down

0 comments on commit 88031d9

Please sign in to comment.