Upload monee #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload monee | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install virtualenv | |
virtualenv venv | |
source venv/bin/activate | |
pip3 install -e .[testpp] | |
pip3 install pytest coverage | |
- name: Test+Coverage | |
run: | | |
source venv/bin/activate | |
pytest --cov --cov-report=xml | |
- name: Build package | |
run: | | |
source venv/bin/activate | |
python -m pip install build | |
python -m build | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@release/v1 |