build(deps): bump pydantic from 1.9.0 to 1.10.13 #31
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Execute Application tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ develop, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} # See docs: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Creates .staging.env file | |
uses: SpicyPizza/[email protected] | |
with: | |
envkey_DATABASE_CONNECTION_STRING: ${{ secrets.DB_CONNECTION_STRING }} | |
file_name: .staging.env | |
fail_on_empty: true | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Execute tests with pytest | |
run: | | |
python -m pytest |