conda-forge #13
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
# For more information about TARDIS pipelines, please refer to: | |
# | |
# https://tardis-sn.github.io/tardis/contributing/development/continuous_integration.html | |
name: conda-forge | |
on: | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: # manual trigger | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
pkgman: [conda, mamba] | |
os: [ubuntu-latest, macos-latest] | |
include: | |
- os: ubuntu-latest | |
platform: linux-64 | |
- os: macos-latest | |
platform: osx-64 | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.platform }} (${{ matrix.pkgman }}) | |
steps: | |
- name: Download lockfile | |
run: wget -q https://github.com/tardis-sn/tardis/releases/latest/download/conda-${{ matrix.platform }}.lock | |
- name: Setup environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
environment-file: conda-${{ matrix.platform }}.lock | |
activate-environment: tardis | |
use-mamba: true | |
- name: Install conda-forge package | |
run: ${{ matrix.pkgman }} install tardis-sn -c conda-forge | |
slack-notify: | |
if: ${{ always() }} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send custom JSON data to Slack workflow | |
uses: slackapi/slack-github-action@v1 | |
with: | |
payload: | | |
{ | |
"text": "conda-forge package installation: ${{ needs.build.result }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "conda-forge package installation: ${{ needs.build.result }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | |
} | |
} | |
] | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |