Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pydantic to 1.10 #808

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions .github/workflows/on_demand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Validate Pull Request

on:
workflow_dispatch:

env:
PYTHON_VERSION: 3.9
POETRY_PATH: "$HOME/.poetry/bin"

jobs:
code_analysis:
name: Code Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["python"]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Change Directory
run: cd ${{ github.workspace }}
- name: Setup Environment
run: make environment
- name: Add Poetry Path
run: echo ${{ env.POETRY_PATH }} >> $GITHUB_PATH
- name: Install Dependencies
run: make install
- name: Lint
run: make lint
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "${{ matrix.language }}"
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

linux_check:
name: Linux Check
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Change Directory
run: cd ${{ github.workspace }}
- name: Setup Environment
run: make environment
- name: Add Poetry Path
run: echo ${{ env.POETRY_PATH }} >> $GITHUB_PATH
- name: Install Dependencies
run: make install
- name: Build
run: make build validate
- name: Full Test Suite & Coverage
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 1
retry_on: timeout
command: make coverage

mac_check:
name: MacOS Check
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Change Directory
run: cd ${{ github.workspace }}
- name: Setup Environment
run: make environment
- name: Add Poetry Path
run: echo ${{ env.POETRY_PATH }} >> $GITHUB_PATH
- name: Install Dependencies
run: make install
- name: Build
run: make build validate
- name: Integration Tests
uses: nick-fields/retry@v2
with:
timeout_minutes: 3
max_attempts: 1
retry_on: timeout
command: make test-integration
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ environment:
@echo 🔧 ENVIRONMENT SETUP
make install-gmp
python3 -m pip install -U pip
pip3 install 'poetry==1.1.13'
pip3 install 'poetry==1.5.1'
poetry config virtualenvs.in-project true
poetry install
@echo 🚨 Be sure to add poetry to PATH
Expand Down
Loading