build(deps): bump urllib3 from 2.0.7 to 2.2.2 #351
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: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
test: | |
name: Test with Pytest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Set Up Python 3.10 | |
uses: "./.github/actions/poetry_setup" | |
with: | |
python-version: "3.10" | |
poetry-version: "1.5.1" | |
install-command: | | |
echo "Installing dependencies with poetry..." | |
poetry install --with test | |
- name: Run Test | |
run: | |
poetry run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=codedog tests/ | tee pytest-coverage.txt | |
- name: Pytest Coverage Comment | |
id: coverageComment | |
uses: MishaKav/pytest-coverage-comment@main | |
with: | |
pytest-coverage-path: ./pytest-coverage.txt | |
junitxml-path: ./pytest.xml | |
default-branch: master | |
- name: Create Badge | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GH_TOKEN }} | |
gistID: ce38dae58995aeffef42065093fcfe84 | |
filename: codedog_master.json | |
label: Coverage | |
message: ${{ steps.coverageComment.outputs.coverage }} | |
color: ${{ steps.coverageComment.outputs.color }} | |
namedLogo: python |