Skip to content

Merge pull request #60 from michaeldickens/fix-pareto-sample #117

Merge pull request #60 from michaeldickens/fix-pareto-sample

Merge pull request #60 from michaeldickens/fix-pareto-sample #117

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test (pytest)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
name: Checkout repository
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: |
poetry run pytest
lint:
name: "Lint (ruff)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
format:
name: "Format (black)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable