Skip to content

chore: add type marker, support for PEP 561 and mypy to @observerly/celerity. #132

chore: add type marker, support for PEP 561 and mypy to @observerly/celerity.

chore: add type marker, support for PEP 561 and mypy to @observerly/celerity. #132

Workflow file for this run

name: celerity/ci
on:
pull_request:
branches:
- main
paths-ignore:
- '__pycache__'
- '.pytest_cache'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: CI/CD Build & Test w/pytest
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
PROJECT_NAME: "Celerity"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Environment File
run: |
touch .env
echo PROJECT_NAME=${PROJECT_NAME} >> .env
cat .env
- name: Docker Compose Build
run: docker compose -f local.yml build --build-arg INSTALL_DEV="true"
- name: Run Pytest Suite
run: docker compose -f local.yml run app pytest
lint:
name: CI/CD Build & Lint w/mypy & ruff
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
PROJECT_NAME: "Celerity"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Environment File
run: |
touch .env
echo PROJECT_NAME=${PROJECT_NAME} >> .env
cat .env
- name: Docker Compose Build
run: docker compose -f local.yml build --build-arg INSTALL_DEV="true"
- name: Run mypy Static Type Checking
run: docker compose -f local.yml run app mypy ./src/celerity