Update README and rev version (#16) #6
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: Push actions | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
tests: | |
runs-on: "ubuntu-latest" | |
name: Test and release | |
steps: | |
- name: Check out code from GitHub | |
uses: "actions/checkout@v3" | |
- name: Setup Python | |
uses: "actions/setup-python@v4" | |
with: | |
python-version: "3.10" | |
- name: Install requirements | |
run: python3 -m pip install -r requirements_test.txt -r requirements_release.txt | |
- name: Run tests | |
run: | | |
python3 -m pytest \ | |
-vv \ | |
-qq \ | |
--timeout=9 \ | |
--durations=10 \ | |
--cov podpointclient \ | |
--cov-report term \ | |
--cov-report html \ | |
-o console_output_style=count \ | |
-p no:sugar \ | |
tests | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: htmlcov/* | |
- name: Build release package | |
run: make package | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |