Skip to content

updated example meta data #93

updated example meta data

updated example meta data #93

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python build IMOSPATools package and test with pytest
on:
push:
branches: [ "master", "test_tests" ]
pull_request:
branches: [ "master" ]
# to be able to run workflow manually, workflow_dispatch event must be defined
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11"]
# as of 7/2024, scipy does not support python 3.10+ yet!
python-version: ["3.8", "3.9"]
# python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m pip install pytest
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
- name: build and install package
run: |
python -m build
python -m pip --verbose install .
- name: Test with pytest
run: |
pytest -v tests/