Skip to content

Safe bulk create

Safe bulk create #789

Workflow file for this run

name: Run library QA
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
env:
PYTHON_DEFAULT_VERSION: "3.11"
jobs:
linter:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./compute_horde
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
cache: "pip"
- name: Install dependencies
run: python -m pip install --upgrade nox 'pdm>=2.12,<3'
- name: Run linters
run: nox -vs lint
type_check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./compute_horde
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
cache: "pip"
- name: Install dependencies
run: python -m pip install --upgrade nox 'pdm>=2.12,<3'
- name: Run mypy
run: nox -vs type_check
test:
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./compute_horde
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
cache: "pip"
- name: Install dependencies
run: python -m pip install --upgrade nox 'pdm>=2.12,<3'
- name: Run unit tests
run: nox -vs test