#11 As part of being a good API citizen, instead of getting a new token at expiry, we should refresh the one we have #14
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: Pull actions | |
on: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: "ubuntu-latest" | |
name: Run tests | |
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/* |