fix: rename reformat_input_string to normalize_input_string and updat… #14
This file contains hidden or 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: Python Tox & Coverage | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Add path to PYTHONPATH | |
| run: | | |
| echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry | |
| poetry install | |
| - name: Test with tox | |
| run: poetry run tox | |
| # copy coverage.xml from tox to path: '~/coverage.xml' | |
| - name: Upload coverage.xml | |
| if: ${{ matrix.python-version == '3.9' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: upload tox-gh-actions-coverage | |
| path: ${{ github.workspace }}/coverage.xml | |
| if-no-files-found: warn | |
| # upload coverage.xml to codecov | |
| - name: Upload coverage.xml to codecov | |
| if: ${{ matrix.python-version == '3.9' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |