bug correction on the satellite hardware code bias computation. #667
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+*" | |
- "v[0-9]+.[0-9]+.[0-9]+*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
python-version: [ "3.12.1" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: abatilo/actions-poetry@v3.0.1 | |
with: | |
poetry-version: 1.7.1 | |
- name: Cache Poetry | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.local | |
~/.cache/pypoetry | |
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Create virtual environment with poetry | |
run: | |
poetry install | |
- name: Run ruff | |
if : ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
poetry run ruff check --exit-non-zero-on-fix | |
poetry run ruff format --check | |
- name: Test with pytest | |
run: | | |
poetry run pytest -n auto --dist=loadfile --durations=10 | |