Skip to content

ci: enable publish-pypi after TestPyPI verification (v1.1.0-test1 OK) #2

ci: enable publish-pypi after TestPyPI verification (v1.1.0-test1 OK)

ci: enable publish-pypi after TestPyPI verification (v1.1.0-test1 OK) #2

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: pytest (offline)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run offline tests
run: pytest -q tests/test_svc.py
build-check:
name: build + twine check
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build tooling
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build
run: python -m build
- name: Twine check
run: python -m twine check dist/*