Skip to content

Releasing to PyPi

Releasing to PyPi #15

Workflow file for this run

name: Python CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
env:
MANIFOLD_API_KEY: ${{ secrets.MANIFOLD_API_KEY }}
SERP_API_KEY: ${{ secrets.SERP_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
BET_FROM_ADDRESS: ${{ secrets.BET_FROM_ADDRESS }}
BET_FROM_PRIVATE_KEY: ${{ secrets.BET_FROM_PRIVATE_KEY }}
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Run mypy
run: poetry run mypy
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9.x", "3.10.x", "3.11.x", "3.12.x" ]
name: Python ${{ matrix.python-version }} pytest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Run pytest
run: poetry run pytest
pytest-paid:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9.x", "3.10.x", "3.11.x", "3.12.x" ]
name: Python ${{ matrix.python-version }} pytest with paid tests
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Run pytest
run: poetry run pytest
env:
RUN_PAID_TESTS: "1"
if: github.event_name == "workflow_dispatch"

Check failure on line 50 in .github/workflows/python_ci.yaml

View workflow run for this annotation

GitHub Actions / Python CI

Invalid workflow file

The workflow is not valid. .github/workflows/python_ci.yaml (Line: 50, Col: 9): Unexpected symbol: '"workflow_dispatch"'. Located at position 22 within expression: github.event_name == "workflow_dispatch"
# TODO: Remove once the environment variables are fixed in the new repository.
continue-on-error: true
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Check with black
run: poetry run black --check .