-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use nox instead of make for building and testing project (#51)
* Add now, remove make dependency * zest.releaser is now on conda-forge * Make pretty * First pass at noxfile.py * Add session for bmi-tester * Add a build-docs session * Break jobs into separate files * Make pretty * Be sure to install package * Install pandoc separately through conda It doesn't install correctly through pip (?) * Use Action for black * Use conda for all dependencies in workflow * Force overwrite of api doc files * Add prepare_docs session to update docs source before building * Pass black arguments to format session * Remove Makefile * Include noxfile.py, drop Makefile
- Loading branch information
Showing
10 changed files
with
220 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Documentation | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build documentation | ||
if: | ||
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != | ||
github.repository | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
python-version: 3.11 | ||
auto-activate-base: false | ||
|
||
- name: Install dependencies | ||
run: pip install nox | ||
|
||
- name: Build documentation | ||
run: nox -s build-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Format | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
format: | ||
name: Check for lint and format code to a standard style | ||
if: | ||
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != | ||
github.repository | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
python-version: 3.11 | ||
auto-activate-base: false | ||
|
||
- name: Install nox | ||
run: pip install nox | ||
|
||
- name: Format code | ||
run: nox -s format -- --check --verbose --diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
include *.md | ||
include *.cff | ||
include environment.yml | ||
include Makefile | ||
include noxfile.py | ||
include examples/* | ||
recursive-include tests * | ||
recursive-include docs * | ||
|
||
exclude .readthedocs.yaml | ||
recursive-exclude docs * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from ._version import __version__ | ||
from .bbox import BoundingBox | ||
from .bmi import BmiTopography | ||
from .topography import Topography | ||
from ._version import __version__ | ||
|
||
__all__ = ["Topography", "BoundingBox", "BmiTopography", "__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.