Skip to content

build(deps): bump pydantic from 1.10.7 to 2.5.1 #83

build(deps): bump pydantic from 1.10.7 to 2.5.1

build(deps): bump pydantic from 1.10.7 to 2.5.1 #83

Workflow file for this run

name: CI
on:
pull_request:
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: |
.venv
~/.local
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
lint:
needs: install
runs-on: ubuntu-latest
name: Linting
steps:
- uses: actions/checkout@v3
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: |
.venv
~/.local
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Lint check
run: poetry run flake8 /home/runner/work/aioelpris/aioelpris/aioelpris
format:
needs: install
runs-on: ubuntu-latest
name: Format Check
steps:
- uses: actions/checkout@v3
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: |
.venv
~/.local
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Format check
run: poetry run black . --check
test:
needs: install
runs-on: ubuntu-latest
name: Tests
steps:
- uses: actions/checkout@v3
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: |
.venv
~/.local
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Unit tests
run: poetry run pytest