[pre-commit.ci] pre-commit autoupdate #109
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: AmplifyP post-commit | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python --version | |
- name: Install pytest | |
run: | | |
pip install pytest-cov | |
- name: Run pytest | |
run: | | |
coverage run -m pytest | |
- name: Display coverage report | |
run: | | |
coverage report -m | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 |