-
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.
Run mvesuvio before uploading package
During the nightly deployment workflow, it's best to test the basic functunality of config and make sure that at least this command does not give an error. In the case of conda, this is best done in the conda recipe, by adding a test section that runs the command for config. (Also added command to run unit tests)
- Loading branch information
1 parent
379732f
commit 4e15abf
Showing
3 changed files
with
35 additions
and
12 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name: Deploy mvesuvio nightly | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["mvesuvio nightly build"] | ||
branches: [main] | ||
types: | ||
- completed | ||
on: push | ||
# workflow_run: | ||
# workflows: ["mvesuvio nightly build"] | ||
# branches: [main] | ||
# types: | ||
# - completed | ||
|
||
jobs: | ||
build_conda_and_upload: | ||
|
@@ -24,8 +24,9 @@ jobs: | |
- name: Check for changes since last build | ||
run: | | ||
echo "recentCommits=$(test -z $(git log --since="yesterday" -1 --format=%h) && echo false || echo true)" >> $GITHUB_ENV | ||
- name: Setup Miniconda | ||
if: ${{ env.recentCommits == 'true'}} | ||
# if: ${{ env.recentCommits == 'true'}} | ||
uses: conda-incubator/[email protected] | ||
with: | ||
miniforge-version: latest | ||
|
@@ -35,14 +36,14 @@ jobs: | |
auto-activate-base: false | ||
|
||
- name: Build mvesuvio nightly conda package | ||
if: ${{ env.recentCommits == 'true'}} | ||
# if: ${{ env.recentCommits == 'true'}} | ||
uses: ./.github/actions/publish-conda-package | ||
with: | ||
label: nightly | ||
token: ${{ secrets.ANACONDA_API_TOKEN }} | ||
|
||
- name: Build mvesuvio nightly PyPI package | ||
if: ${{ env.recentCommits == 'true'}} | ||
# if: ${{ env.recentCommits == 'true'}} | ||
uses: ./.github/actions/publish-pypi-package | ||
with: | ||
token: ${{ secrets.PYPI_API_TOKEN }} |
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