chore: add Time export to root __init__.py in @observerly/celerity. #131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |