[pre-commit.ci] pre-commit autoupdate #111
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: CI | |
on: [push] | |
jobs: | |
ci: | |
# Set up operating system | |
runs-on: ubuntu-latest | |
# Define job steps | |
steps: | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Check-out repository | |
uses: actions/checkout@v3 | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
- name: Install package | |
run: poetry install | |
- name: Test with pytest | |
run: poetry run pytest tests/ --cov=cardsort --cov-report=xml | |
- name: Use Codecov to track coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml # coverage report |