Skip to content

Pnast/refactor/mic 5269 composition #1638

Pnast/refactor/mic 5269 composition

Pnast/refactor/mic 5269 composition #1638

Workflow file for this run

# -----------------------------------------------------------------------------
# - invoked on push, pull_request, or manual trigger
# - test under at least 3 versions of python
# -----------------------------------------------------------------------------
name: build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Print environment values
run: |
python --version
cat $GITHUB_ENV
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Lint
run: |
pip install black==22.3.0 isort
black . --check --diff
isort . --check --verbose --only-modified --diff
- name: Install dependencies
run: |
pip install .[dev]
- name: Test
run: |
pytest ./tests