Skip to content

Update dependency fastapi to ^0.115.0 #60

Update dependency fastapi to ^0.115.0

Update dependency fastapi to ^0.115.0 #60

Workflow file for this run

---
name: Pull Request
on:
pull_request:
branches: [ main ]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Install Project Dependencies
run: |
poetry install --only main,test
- name: Run Unit Tests
run: |
poetry run pytest --cov-report term --cov
docker-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Build Docker Test Image
run: |
docker build --target test -o type=local,dest=out .
shell: bash
- name: Display Test Results
run: |
docker run --rm $(docker build -q --target test .) cat /opt/calculator/test_results.txt
shell: bash
code-quality-checks:
runs-on: ubuntu-latest
steps:
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Install Project Dependencies
run: |
poetry install --only main,code-quality
- name: Formatter Check
run: poetry run black --check .
- name: Import Order Check
run: poetry run isort --check-only --diff .
- name: Linter Check
run: poetry run flake8 .