Skip to content

html template v2 development #46

html template v2 development

html template v2 development #46

Workflow file for this run

name: Build Python Package
on:
push:
branches:
- main
- '**'
tags-ignore:
- 'v*.*.*'
paths:
- '**.yml'
- '**.py'
- '**.html'
- pyproject.toml
pull_request:
paths:
- '**.yml'
- '**.py'
- '**.html'
- pyproject.toml
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Build Dependencies
run: |
python -m pip install --upgrade pip
pip install build ruff pytest
- name: Lint with Ruff
run: ruff check .
- name: Build Package
run: python -m build
- name: Test CLI Command
run: |
pip install .
testdoc --help
- name: Run Unit Tests
run: pytest atest/
# - name: Publish to TestPyPI
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
# run: |
# pip install twine
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*