Skip to content

Update README.md

Update README.md #11

Workflow file for this run

# .github/workflows/publish.yml
name: Publish Package
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11' # Specify your Python version here
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest tests/
publish:
runs-on: ubuntu-latest
needs: test
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build package
run: |
python setup.py sdist
python setup.py bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.7.1
with:
password: ${{ secrets.PYPI_API_TOKEN }}