-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (45 loc) · 1.22 KB
/
satellite-build.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
name: tests
on: [push, pull_request]
jobs:
build:
environment: env-satellite
env:
CDSAPI_KEY: "{{ secrets.API_UUID }}:{{ secrets.API_KEY }}"
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.10"]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.11.0
- name: Semantic Release PR Title Check
uses: osl-incubator/[email protected]
with:
convention-name: conventionalcommits
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
mamba-version: "*"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: env-satellite
use-mamba: true
miniforge-variant: Mambaforge
- name: Install dependencies
run: |
poetry install
- name: Lint
run: |
pre-commit run --all-files
- name: Run tests
run: |
pytest -s tests/