-
Notifications
You must be signed in to change notification settings - Fork 6
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 #72 from openalea/packaging
Fix noarch package
- Loading branch information
Showing
2 changed files
with
42 additions
and
17 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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
name: Building and publish package using anaconda | ||
name: build_publish_anaconda | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
branches: | ||
- '*' | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: # allows you to trigger manually | ||
|
||
|
||
jobs: | ||
build-and-publish: | ||
name: ${{ matrix.os }}, Python 3.${{ matrix.python-minor-version }} for conda deployment | ||
|
@@ -18,25 +14,54 @@ jobs: | |
fail-fast: false | ||
max-parallel: 3 | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-minor-version: [7] | ||
os: [ubuntu-latest] | ||
python-minor-version: [9] | ||
isMaster: | ||
- ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/dev') }} | ||
exclude: | ||
- isMaster: false | ||
os: ubuntu-latest | ||
python-minor-version: 7 | ||
- isMaster: false | ||
os: ubuntu-latest | ||
python-minor-version: 8 | ||
- isMaster: false | ||
os: macos-latest | ||
python-minor-version: 7 | ||
- isMaster: false | ||
os: macos-latest | ||
python-minor-version: 8 | ||
- isMaster: false | ||
os: macos-latest | ||
python-minor-version: 9 | ||
- isMaster: false | ||
os: windows-latest | ||
python-minor-version: 7 | ||
- isMaster: false | ||
os: windows-latest | ||
python-minor-version: 8 | ||
- isMaster: false | ||
os: windows-latest | ||
python-minor-version: 9 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Chekout | ||
uses: actions/checkout@v3 | ||
- name: Determine publish | ||
uses: haya14busa/action-cond@v1 | ||
id: publish | ||
with: | ||
cond: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
cond: ${{ contains(github.ref, 'master') || startsWith(github.ref, 'refs/heads/v') }} | ||
if_true: 'true' | ||
if_false: 'false' | ||
- name: Build and Publish | ||
uses: openalea/[email protected].2 | ||
uses: openalea/[email protected].3 | ||
with: | ||
conda: conda | ||
mamba: false | ||
mamba: true | ||
python: ${{ matrix.python-minor-version }} | ||
channels: openalea3, conda-forge | ||
numpy: '20.0' | ||
channels: openalea3, conda-forge | ||
token: ${{ secrets.ANACONDA_TOKEN }} | ||
publish: ${{ steps.publish.outputs.value }} | ||
label: main | ||
label: main |
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