Skip to content

refresh poetry.lock #328

refresh poetry.lock

refresh poetry.lock #328

Workflow file for this run

name: Formatting and unit tests
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
pydantic-version: ["1.9.1", "2.0.3"]
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: ./.github/actions/setup-actions
- name: Install Pydantic ${{ matrix.pydantic-version }}
run: |
pip install pydantic==${{ matrix.pydantic-version }}
- name: Linter
run: poetry run flake8
- name: Code Formatting
uses: psf/black@stable
- name: Type Check
run: poetry run mypy open_rarity
- name: Unit tests
run: poetry run pytest --cov-config=.coveragerc --cov=open_rarity tests/