Skip to content

fix pstats file generation #3

fix pstats file generation

fix pstats file generation #3

Workflow file for this run

---
on:
- push
env:
PYTHONUNBUFFERED: 1
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: ./requirements*.txt
- run: pip install .
- run: pip install -r ./requirements-test.txt
- uses: jakebailey/pyright-action@v2
- run: pytest -sv
pypi-publish:
name: Upload release to PyPI
needs: [test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: pypi
url: https://pypi.org/p/L_bash_profile
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: checkout
uses: actions/checkout@v4
- name: install build python package
run: python -m pip install -U setuptools wheel build
- name: build the package
run: python -m build .
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1