Skip to content

Update openapi.json to v0.212.2 #728

Update openapi.json to v0.212.2

Update openapi.json to v0.212.2 #728

Workflow file for this run

name: Build and Deploy
on:
push:
branches: ["main"]
tags: [v*]
pull_request:
types: [ opened, synchronize ]
jobs:
build:
runs-on: ubuntu-22.04
name: "Build"
strategy:
matrix:
python-version: ["3.8", "3.10"]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: build package
run: |
set -e
pip install --disable-pip-version-check -r requirements.txt
pip install --disable-pip-version-check -r requirements_dev.txt
mypy priceloop_api/
publish:
if: github.ref_type == 'tag'
runs-on: ubuntu-22.04
name: "Publish python package on PyPI"
strategy:
matrix:
versions: ['3.8-pandas1', '3.10-pandas2']
needs:
- build
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.versions }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.versions == '3.8-pandas1' && '3.8' || '3.10' }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish pandas 1
if: ${{ matrix.versions == '3.8-pandas1' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Build and publish pandas 2
if: ${{ matrix.versions == '3.10-pandas2' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup-pandas2.py sdist bdist_wheel
twine upload dist/*