Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
split workflows and test the conda package on windows/unix separately
Browse files Browse the repository at this point in the history
  • Loading branch information
fdiblen committed May 20, 2020
1 parent aa2f9a0 commit bb75b60
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:

build:
analysis:
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -73,6 +73,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

build:
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: analysis
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Deactivate matchms-dev environment
shell: bash -l {0}
run: |
Expand Down Expand Up @@ -106,6 +115,7 @@ jobs:
--croot $BUILD_FOLDER \
./conda
- name: Test local conda package
if: matrix.os != 'windows-latest'
shell: bash -l {0}
run: |
export BUILD_FOLDER=/tmp/matchms/_build
Expand All @@ -114,3 +124,13 @@ jobs:
--channel conda-forge \
--channel file://${BUILD_FOLDER}/noarch/ \
matchms
- name: Test local conda package
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: |
export BUILD_FOLDER=%TMPDIR%\matchms\_build
conda install \
--channel bioconda \
--channel conda-forge \
--channel file:\\${BUILD_FOLDER}\noarch\ \
matchms
9 changes: 9 additions & 0 deletions .github/workflows/conda_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ jobs:
run: |
export BUILD_FOLDER=/tmp/matchms/_build
anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --user nlesc --force $BUILD_FOLDER/noarch/*.tar.bz2
testpublished:
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: publish
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- uses: goanpeca/setup-miniconda@v1
with:
activate-environment: matchms-test
Expand Down

0 comments on commit bb75b60

Please sign in to comment.