build(deps-dev): bump urllib3 from 2.0.2 to 2.0.6 #1037
Workflow file for this run
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
# Based off https://github.com/Electrostatics/mmcif_pdbx/blob/master/.github/workflows/python-package.yml | |
# Also credit to https://github.com/commitizen-tools/commitizen/tree/master/.github/workflows | |
# MacPorts setup and coverage only required for pytest | |
# We don't need these checks in both python versions | |
# TODO: Add mypy only for python 3.9 (since different typing syntax) | |
# pytype currently doesn't work in python 3.9 | |
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | |
test-file: [dependencies, formatting, pytest, type_checking] | |
exclude: | |
- python-version: 3.7 | |
test-file: dependencies | |
- python-version: 3.8 | |
test-file: dependencies | |
- python-version: 3.9 | |
test-file: dependencies | |
- python-version: "3.10" | |
test-file: dependencies | |
- python-version: 3.7 | |
test-file: formatting | |
- python-version: 3.8 | |
test-file: formatting | |
- python-version: 3.9 | |
test-file: formatting | |
- python-version: "3.10" | |
test-file: formatting | |
- python-version: 3.8 | |
test-file: type_checking | |
- python-version: 3.9 | |
test-file: type_checking | |
- python-version: "3.10" | |
test-file: type_checking | |
- python-version: "3.11" | |
test-file: type_checking | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up MacPorts # Only required for pytest | |
if: matrix.test-file == 'pytest' | |
uses: GiovanniBussi/macports-ci-action@master | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip poetry | |
poetry --version | |
poetry install | |
- name: Test ${{ matrix.test-file }} | |
run: bash ./scripts/tests/${{ matrix.test-file }}.sh | |
- name: Upload coverage to Codecov # Again only required for pytest | |
if: matrix.test-file == 'pytest' | |
uses: codecov/codecov-action@v3.1.0 | |
with: | |
file: ./coverage.xml | |
flags: unittests |