chore(deps): update pypa/gh-action-pypi-publish digest to 93e8795 #301
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
# This workflow will install Python dependencies and run tests with a variety of Python versions | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python Test | |
on: | |
push: | |
branches: | |
- main | |
- "release/**" | |
pull_request: | |
branches: | |
- main | |
- "release/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout | |
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 | |
pip install ipykernel pytest pytest-cov pytest-mock coverage codecov | |
- name: Test with pytest | |
run: | | |
pytest --cov --cov-report=term-missing -vv tests nbtutor | |
codecov -t ${{ secrets.CODECOV_TOKEN }} |