This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Update the instructions within the readme (#2) #21
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: | |
branches: ['main'] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11', '3.12'] | |
toxenv: ['py3'] | |
include: | |
- python-version: '3.12' | |
toxenv: 'lint' | |
- python-version: '3.12' | |
toxenv: 'coverage' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: Test with tox | |
run: tox -e ${{ matrix.toxenv }} | |
- name: Get coverage | |
if: | |
matrix.toxenv == 'coverage' && github.event_name == 'pull_request' | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: false | |
files: ./coverage.xml | |
flags: pytest | |
name: "fz-td-recipe-py312" |