Skip to content

Validate the extra model arg to always be be an int result #623

Validate the extra model arg to always be be an int result

Validate the extra model arg to always be be an int result #623

Workflow file for this run

name: Build
on:
push:
branches: ["main"]
tags: ["v*"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run end-to-end test suite
run: tox -e py
- name: Run linters via pre-commit
run: tox -e pre-commit
release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/service-capacity-modeling
permissions:
id-token: write
# Only release on main branch builds, and require a successful build
if: github.event.ref == 'refs/heads/main'
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v4
# We need the full history for version calculation
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install --upgrade build
- name: Build Python package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1