Merge pull request #99 from pluflou/pkg-update #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |