Skip to content

Metrics

Metrics #10

Workflow file for this run

name: Python package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest'] # excluding other OSs to save GitHub Action credits 'macos-latest', 'windows-latest'
python-version: ['3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python info
shell: bash -l {0}
run: |
which python3
python3 --version
- name: Install and configure Poetry
run: |
python -m pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Run unit tests
run: poetry run pytest -v
- name: Build the package with Poetry
run: poetry build
- name: Check types with Pytype
run: poetry run pytype src/faivor