Skip to content

feat: Add --cov to pytest line #6

feat: Add --cov to pytest line

feat: Add --cov to pytest line #6

Workflow file for this run

---
name: publish
# Actions for any tag.
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# At the GitHub 'organisation' or 'project' level you must have the following
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
#
# PYPI_USERNAME
# PYPI_TOKEN
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (none)
on:
push:
tags:
- '**'
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r build-requirements.txt
pip install -r package-requirements.txt
- name: Build
run: |
pyroma .
python setup.py bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1