-
Notifications
You must be signed in to change notification settings - Fork 0
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 #3 from ornlneutronimaging/qa
advance release candidate to new stable release
- Loading branch information
Showing
83 changed files
with
2,369 additions
and
2,876 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,46 @@ | ||
name: conda packaging and deployment | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [qa, main] | ||
tags: ['v*'] | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
mamba-version: "*" | ||
environment-file: environment.yml | ||
cache-environment-key: ${{ runner.os }}-env-${{ hashFiles('**/environment.yml') }} | ||
cache-downloads-key: ${{ runner.os }}-downloads-${{ hashFiles('**/environment.yml') }} | ||
- name: install additional dependencies | ||
run: | | ||
echo "installing additional dependencies from environment_development.yml" | ||
- name: build conda package | ||
run: | | ||
# set up environment | ||
cd conda-recipe | ||
echo "versioningit $(versioningit ../)" | ||
# build the package | ||
VERSION=$(versioningit ../) conda mambabuild --output-folder . . | ||
conda verify noarch/neunorm*.tar.bz2 | ||
- name: upload conda package to anaconda | ||
shell: bash -l {0} | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
env: | ||
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | ||
IS_RC: ${{ contains(github.ref, 'rc') }} | ||
run: | | ||
# label is main or rc depending on the tag-name | ||
CONDA_LABEL="main" | ||
if [ "${IS_RC}" = "true" ]; then CONDA_LABEL="rc"; fi | ||
echo pushing ${{ github.ref }} with label $CONDA_LABEL | ||
anaconda upload --label $CONDA_LABEL conda.recipe/noarch/neunorm*.tar.bz2 |
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,22 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-added-large-files | ||
args: [--maxkb=8192] | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
args: [--allow-multiple-documents] | ||
exclude: "conda.recipe/meta.yaml" | ||
- id: end-of-file-fixer | ||
exclude: "tests/cis_tests/.*" | ||
- id: trailing-whitespace | ||
exclude: "tests/cis_tests/.*" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.14 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
exclude: "tests/cis_tests/.*" | ||
- id: ruff-format | ||
exclude: "tests/cis_tests/.*" |
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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,9 @@ | ||
# Configuration file for codecov reporting code coverage | ||
|
||
codecov: | ||
token: 6cba80e7-6201-4ee5-baf2-b44b290ad103 | ||
status: | ||
project: | ||
default: | ||
# base on last build, but allow drop of upto this percent | ||
threshold: 0.5% |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.