Skip to content

Test installation on ubuntu-latest #3

Test installation on ubuntu-latest

Test installation on ubuntu-latest #3

name: Test installation on ubuntu-latest
on:
workflow_dispatch:
jobs:
test:
name: Python ${{ matrix.cfg.python-version }}
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
- { os: ubuntu-latest, python-version: "3.9" }
- { os: ubuntu-latest, python-version: "3.10" }
- { os: ubuntu-latest, python-version: "3.11" }
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Rename source directory to avoid conflict
run: |
mv pyunitwizard pyunitwizard_src
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.cfg.python-version }}
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test
condarc: |
channels:
- uibcdf
- conda-forge
- defaults
channel_priority: strict
create-args: >-
python=${{ matrix.cfg.python-version }}
- name: Info conda
shell: bash -l {0}
run: |
micromamba info
micromamba list
micromamba search pyunitwizard --channel uibcdf
- name: Test installation
run: |
micromamba install -n test pyunitwizard
micromamba activate test
python -c "import pyunitwizard; print(pyunitwizard.__version__)"