-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Callioepe v0.7.0dev3; fix docs and tests; add CI (#2)
- Loading branch information
1 parent
abda5d7
commit c8daef6
Showing
17 changed files
with
275 additions
and
22 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,38 @@ | ||
name: Bug Report | ||
description: Report a bug that leads to calliope-pathways not working as expected. | ||
labels: [bug] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: What happened? | ||
description: Also tell us what you expected to happen. | ||
placeholder: Tell us what you see! | ||
value: "Something unexpected happened!" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: operating-systems | ||
attributes: | ||
label: Which operating systems have you used? | ||
description: You may select more than one. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version of calliope-pathways are you using? | ||
placeholder: v0.1.0 | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: Shell | ||
validations: | ||
required: false |
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,53 @@ | ||
name: Report a documentation issue | ||
description: Missing, incorrect, or confusing information in our docs? Report a documentation issue | ||
labels: | ||
- documentation | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: >- | ||
Please describe the inconsistency or issue you have found in | ||
[our documentation](https://calliope-pathways.readthedocs.io) | ||
or indicate where you feel there is a need for improvement. Furthermore, | ||
explain the severity of the issue, i.e., its impact on you and potentially | ||
other users. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: related-links | ||
attributes: | ||
label: Related links | ||
description: >- | ||
Please list all links to the sections of [our documentation](https://calliope-pathways.readthedocs.io) | ||
that are impacted by the issue you described above. If applicable, | ||
add screenshots. Additionally, list links to possibly related open | ||
and closed [issues](https://github.com/calliope-project/calliope-pathways/issues) | ||
and [discussions](https://github.com/calliope-project/calliope-pathways/discussions) | ||
you encountered when searching our issue tracker. | ||
value: | | ||
- | ||
- | ||
... | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: Which version of the documentation are you referring to? | ||
placeholder: v0.7.0 | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: proposed-change | ||
attributes: | ||
label: Proposed change | ||
description: >- | ||
This field is optional. You may provide an improvement proposal for our | ||
documentation by describing your suggestion in the text field below or | ||
creating a pull request after reporting this issue referencing the issue. |
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,24 @@ | ||
name: Feature Request | ||
description: Suggest an idea for calliope-pathways. | ||
labels: [enhancement] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for letting us know about your idea! | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: What can be improved? | ||
placeholder: Tell us what you would like to see! | ||
value: "calliope-pathways should be more memory efficient!" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version of calliope-pathways are you using? | ||
placeholder: v0.1.0 | ||
validations: | ||
required: true |
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 @@ | ||
blank_issues_enabled: true |
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,18 @@ | ||
name: Markdown link check | ||
|
||
on: | ||
schedule: # runs every monday at 9 am | ||
- cron: "0 9 * * 1" | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths: | ||
- "**.md" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: markdown-link-check | ||
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 |
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,73 @@ | ||
name: Pull Request CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- README.md | ||
- CHANGELOG.md | ||
- LICENSE | ||
- AUTHORS | ||
- docs/** | ||
- .readthedocs.yml | ||
- .pre-commit-config.yaml | ||
- mkdocs.yml | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
concurrency: | ||
# Use github.run_id on main branch | ||
# Use github.event.pull_request.number on pull requests, so it's unique per pull request | ||
# Use github.ref on other branches, so it's unique per branch | ||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
if: github.event.pull_request.draft == false | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
py3version: ["10", "11", "12"] | ||
include: | ||
- os: windows-latest | ||
py3version: "12" | ||
- os: macos-latest | ||
py3version: "12" | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
micromamba-version: latest | ||
environment-name: ${{ github.event.repository.name }}-${{ matrix.os }}-3${{ matrix.py3version }}-${{ hashFiles('requirements/dev.txt') }} | ||
environment-file: requirements/base.txt | ||
create-args: >- | ||
-c conda-forge/label/calliope_dev | ||
-f requirements/dev.txt | ||
curl | ||
python=3.${{ matrix.py3version }} | ||
post-cleanup: all | ||
cache-environment: true | ||
|
||
- name: Install package | ||
run: pip install --no-dependencies -e . | ||
|
||
- name: install CBC (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
curl -L https://github.com/coin-or/Cbc/releases/download/releases%2F2.10.10/Cbc-releases.2.10.10-w64-msvc17-md.zip -o cbc.zip | ||
unzip cbc.zip -d ${HOME}/cbc | ||
echo "${HOME}/cbc/bin" >> $GITHUB_PATH | ||
- name: install CBC (Unix) | ||
if: matrix.os != 'windows-latest' | ||
run: micromamba install coin-or-cbc | ||
|
||
- name: run tests | ||
run: pytest |
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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
calliope>=0.7.0dev2 | ||
calliope>=0.7.0dev3 |
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
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