forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (62 loc) · 2.09 KB
/
conda-forge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 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