Skip to content

Reimplemented _from_node with singledispatch. #15

Reimplemented _from_node with singledispatch.

Reimplemented _from_node with singledispatch. #15

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]"
coverage run --branch --source=yaml_where -m pytest tests
python -m coverage report --show-missing --fail-under=100
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 }}