Update: wording of question argument. #28
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: themefinder tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Use Python from .python-version for consistency | |
- name: Read Python version | |
id: read_python_version | |
run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade poetry | |
poetry install | |
- name: Run tests with Pytest | |
run: | | |
poetry run coverage run -m pytest -v -s | |
- name: Generate coverage report | |
run: | | |
poetry run coverage report -m --fail-under=99 | |