* chore: eenable mypy * chore: Update MyPy command in typecheck.yml workflow * fix caching. makefile lint improvements * chore: Fix sed command in typecheck.yml workflow * chore: Update sed command in typecheck.yml workflow * chore: Update Python version to 3.10 in typecheck.yml workflow * remove pretty * pipefail
37 lines
961 B
YAML
37 lines
961 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: development
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Load cached Poetry installation
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.local
|
|
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
|
|
- name: Install Poetry
|
|
uses: snok/install-poetry@v1
|
|
with:
|
|
virtualenvs-create: true
|
|
virtualenvs-in-project: true
|
|
installer-parallel: true
|
|
- name: Install dependencies
|
|
run: poetry install --no-interaction --no-root
|
|
- name: Run non-integration tests
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}
|
|
run: |
|
|
poetry run pytest -m "not integration"
|