Skip to content

Commit 8db950d

Browse files
Test basic commands on github actions
Commented out some parts to test on github actions.
1 parent 379732f commit 8db950d

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

.github/actions/publish-pypi-package/action.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,20 @@ runs:
2323
run: |
2424
conda activate build-env-pypi
2525
python -m build
26-
twine upload -u __token__ -p ${{ inputs.token }} dist/*
26+
conda deactivate
27+
28+
- name: Test basic functunality
29+
shell: bash -l {0}
30+
run: |
31+
conda create -n build-mvesuvio-test mantid/label/nightly::mantidworkbench
32+
conda activate build-mvesuvio-test
33+
pip install dist/*.tar.gz
34+
mvesuvio config
35+
mvesuvio run
36+
conda deactivate
37+
38+
- name: Upload package
39+
shell: bash -l {0}
40+
run: |
41+
conda activate build-env-pypi
42+
# twine upload -u __token__ -p ${{ inputs.token }} dist/*

.github/workflows/deploy_conda_nightly.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Deploy mvesuvio nightly
22

3-
on:
4-
workflow_run:
5-
workflows: ["mvesuvio nightly build"]
6-
branches: [main]
7-
types:
8-
- completed
3+
on: push
4+
# workflow_run:
5+
# workflows: ["mvesuvio nightly build"]
6+
# branches: [main]
7+
# types:
8+
# - completed
99

1010
jobs:
1111
build_conda_and_upload:
@@ -34,12 +34,12 @@ jobs:
3434
environment-file: environment.yml
3535
auto-activate-base: false
3636

37-
- name: Build mvesuvio nightly conda package
38-
if: ${{ env.recentCommits == 'true'}}
39-
uses: ./.github/actions/publish-conda-package
40-
with:
41-
label: nightly
42-
token: ${{ secrets.ANACONDA_API_TOKEN }}
37+
# - name: Build mvesuvio nightly conda package
38+
# if: ${{ env.recentCommits == 'true'}}
39+
# uses: ./.github/actions/publish-conda-package
40+
# with:
41+
# label: nightly
42+
# token: ${{ secrets.ANACONDA_API_TOKEN }}
4343

4444
- name: Build mvesuvio nightly PyPI package
4545
if: ${{ env.recentCommits == 'true'}}

0 commit comments

Comments
 (0)