Skip to content

Improving error reporting. #8

Improving error reporting.

Improving error reporting. #8

Workflow file for this run

---
name: CI
on:
push:
tags: ["release/v*"]
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
tests:
name: "Tests on Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
env:
USING_COVERAGE: '3.11'
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Run tests"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install ".[test]"
python -m pytest tests/
package:
name: "Build Package Distributions"
needs: tests
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.11"
- name: "Build distribution"
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
- name: Publish package
if: startsWith(github.ref, 'refs/tags/release/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}