-
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.
- Loading branch information
1 parent
3324cf7
commit 7b82964
Showing
4 changed files
with
77 additions
and
2 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,24 @@ | ||
name: Conda Build and Upload | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Conda | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.11 | ||
- name: Build and upload conda package | ||
shell: bash -l {0} | ||
env: | ||
ANACONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | ||
run: | | ||
conda install --yes --quiet conda-build conda-verify anaconda-client | ||
conda build conda.recipe/ --channel=conda-forge | ||
anaconda -t $ANACONDA_TOKEN upload -u nrel $(conda build conda.recipe/ --channel=conda-forge --output) |
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,46 @@ | ||
name: Pytest | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 1-5" | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[dev]" | ||
- name: Run pytest | ||
run: | | ||
python -m pytest -v --disable-warnings tests | ||
mypy: | ||
runs-on: ubuntu-latest | ||
name: "mypy" | ||
steps: | ||
- uses: davidslusser/[email protected] | ||
with: | ||
src: "src" | ||
options: "--ignore-missing-imports" | ||
ruff: | ||
runs-on: ubuntu-latest | ||
name: "ruff" | ||
steps: | ||
- uses: davidslusser/[email protected] | ||
with: | ||
src: "src" | ||
pip_install_command: "pip install -e .[dev]" | ||
python_version: "3.11" |
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