Skip to content

chore: update .gitignore (#5) #13

chore: update .gitignore (#5)

chore: update .gitignore (#5) #13

name: Python Tests and Coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
cd youtube-playlist-downloader
poetry install
- name: Run tests with pytest and coverage
run: |
cd youtube-playlist-downloader
poetry run pytest tests --cov=. --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./youtube-playlist-downloader/coverage.xml
flags: unittests
fail_ci_if_error: true