Skip to content

🗓 Dec 18, 2024 10:09:40 PM #25

🗓 Dec 18, 2024 10:09:40 PM

🗓 Dec 18, 2024 10:09:40 PM #25

name: tests
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
publish:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/[email protected]
- name: setup
uses: actions/[email protected]
with:
python-version: "3.7"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy # Install mypy
- name: generate .pyi files using stubgen
run: |
python -m mypy.stubgen --output ./ --package ripgrepy # Generate stub files
- name: build
run: |
python setup.py sdist
- name: publish
uses: pypa/[email protected]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}