feat(content-type): add warning if a pac file is found but the content-type is invalid #36
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [2.7, 3.7, 3.8, 3.9, '3.10', 3.11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dukpy for Windows Python 2.7 | |
if: matrix.os == 'windows-latest' && matrix.python-version == '2.7' | |
# Pin to final release that still published Python 2.7 binary wheels | |
run: pip install dukpy==0.2.3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install -e .[dev] | |
- name: Test with pytest and coverage | |
run: | | |
pytest --cov=pypac |