Update models #25
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: Python package | |
on: | |
push: | |
branches: | |
- '*' | |
workflow_call: {} | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10","3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: oceanum-io/oceanum-python | |
ref: prax-cli | |
path: libs/oceanum-python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install package and dependencies | |
run: | | |
pip install libs/oceanum-python | |
pip install .[test] | |
- name: Lint code with Ruff | |
run: | | |
pip install ruff | |
ruff check --output-format=github --target-version=py310 --exclude=tests --exclude=oceanum-python | |
continue-on-error: true | |
- name: Run unit-tests | |
run: | | |
pytest --cov oceanum.cli.prax tests/ -s -v | |