-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from andreww/dev-inf
Setup some development infrastructure
- Loading branch information
Showing
12 changed files
with
254 additions
and
177 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI | ||
|
||
# We can specify which Github events will trigger a CI build | ||
on: push | ||
|
||
# now define a single job 'build' (but could define more) | ||
jobs: | ||
|
||
build: | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.10", "3.11"] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
# a job is a seq of steps | ||
steps: | ||
|
||
# Next we need to checkout out repository, and set up Python | ||
# A 'name' is just an optional label shown in the log - helpful to clarify progress - and can be anything | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install -r requirements.txt | ||
- name: Check style with Pylint | ||
run: | | ||
python3 -m pylint --fail-under=5 --reports=y earth_model | ||
- name: Test with PyTest | ||
run: | | ||
python3 -m pytest --cov=earth_model | ||
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,19 @@ | ||
# IDEs | ||
.vscode/ | ||
.idea/ | ||
|
||
# Intermediate Coverage file | ||
.coverage | ||
|
||
# Output files | ||
*.png | ||
|
||
# Python runtime | ||
*.pyc | ||
*.egg-info | ||
.pytest_cache | ||
__pycache__ | ||
|
||
# Virtual environments | ||
venv/ | ||
.venv/ |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
"""PREM-like Earth models""" |
Oops, something went wrong.