-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (33 loc) · 993 Bytes
/
merge.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
name: Post-merge actions
on:
pull_request_target:
types: [closed]
paths-ignore:
- .github/*
- .gitignore
- README.md
jobs:
update_coverage_badge:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
- name: Create YAML from recipe
run: |
cp .github/environment/environment.yaml /tmp/environment.yaml
grep -v '{%' < .github/recipe/meta.yaml | yq .requirements.host | sed 's/^/ /' >> /tmp/environment.yaml
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: /tmp/environment.yaml
generate-run-shell: true
- name: Check unit test code coverage
shell: micromamba-shell {0}
run: R -e "covr::codecov()"