use copy - just incase #576
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: Run tests and lint | |
on: | |
push: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
test_and_lint: | |
name: Run the tests and lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Install poetry | |
run: pipx install poetry==1.3.2 | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: poetry | |
- name: Install python dependencies | |
run: poetry install | |
- name: Run lint | |
run: make lint | |
- name: Run the tests | |
run: poetry run pytest --cov=pv_site_api --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |