Skip to content

attribute-context CLI command #1108

attribute-context CLI command

attribute-context CLI command #1108

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
make poetry-download
export PATH="$HOME/.poetry/env:$PATH"
- name: Set up cache
uses: actions/cache@v3.0.11
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
make install-ci
- name: Run style checks
run: |
make check-style
- name: Run fast tests
run: |
make fast-test
- name: Run safety checks
run: |
make check-safety