-
Notifications
You must be signed in to change notification settings - Fork 18
93 lines (76 loc) · 2.13 KB
/
main.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: ci-main-tests-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "1.*"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
channel-priority: true
activate-environment: pypkg
use-mamba: true
miniforge-variant: Mambaforge
- name: Install dependencies
run: poetry install
- name: Run tests
run: makim tests.unittest
- name: Run style checks
run: |
pre-commit install
makim tests.lint
- name: Semantic Release PR Title Check
uses: osl-incubator/semantic-release-pr-title-check@v1.4.1
if: success() || failure()
with:
convention-name: conventionalcommits
smoke-test:
runs-on: ubuntu-latest
concurrency:
group: ci-main-smoke-${{ matrix.smoke_file }}-${{ github.ref }}
cancel-in-progress: true
strategy:
matrix:
smoke_file:
- automation.sh
- auto-format-tools.sh
- build-systems.sh
- containers.sh
- docs.sh
- files.sh
- linters.sh
- tests.sh
- virtual-envs.sh
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "1.*"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
channel-priority: true
activate-environment: pypkg
use-mamba: true
miniforge-variant: Mambaforge
- name: Install dependencies
run: poetry install
- name: Run Smoke Test (${{ matrix.smoke_file }})
run: bash ./tests/smoke/${{ matrix.smoke_file }}