Skip to content

Add pypi test back #1188

Add pypi test back

Add pypi test back #1188

Workflow file for this run

name: Python Application
on:
push:
branches: [ "main" ]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
environment: Scheduled Testing
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Write secrets
env:
SECRETS_CONFIG: |
[demo]
api_key="12345"
run: |
mkdir -p config
echo "$SECRETS_CONFIG" > config/secrets.toml
- name: Install poetry
run: pipx install "poetry == 1.8.5"
- name: Install dependencies
run: poetry lock && poetry install --no-interaction --with dev --extras all_plugins
- name: Lint formatting
run: poetry run black --check .
- name: Test with pytest
run: poetry run pytest
- name: Run mypy
run: poetry run mypy --follow-imports silent --exclude modelbench src/modelgauge