-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (47 loc) · 1.3 KB
/
actions.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
name: unit-test
on:
workflow_dispatch:
pull_request:
push:
branches: [next]
tags: ['v*']
jobs:
linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
mamba-version: "*"
environment-file: environment.yml
- name: Verify docstrings
run: pydocstyle --convention=numpy src/
- name: Install ui test requirements
run: playwright install
- name: Install iMars3d in editable mode
run: pip install -e .
- name: Tests without data repository
run: |
python -m pytest --cov --cov-report=xml --cov-report=term -m "not datarepo"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
build-wheel:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
mamba-version: "*"
environment-file: environment.yml
- name: Build Wheel
run: python -m build --no-isolation --wheel
- name: Check Wheel Contents
run: check-wheel-contents .