-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (38 loc) · 1.04 KB
/
test_build.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
name: Test build lume-model
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.11", "3.12"]
name: Python ${{ matrix.python-version }}, ${{ matrix.os }} build
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-version: latest
use-mamba: true
channels: conda-forge
activate-environment: lume-model-dev
- name: Install lume-model
shell: bash -l {0}
run: |
pip install -e ".[dev]"
- name: Run Tests
shell: bash -l {0}
run: |
pytest -ra --pyargs tests
- name: Install build
shell: bash -l {0}
run: |
python -m pip install build --user
- name: Build a source tarball
shell: bash -l {0}
run: |
python -m build