Replace psf/requests
with an unofficial fork
#655
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
name: Tests | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/tests.yml | |
- httpie/**/*.py | |
- setup.* | |
- tests/**/*.py | |
pull_request: | |
paths: | |
- .github/workflows/tests.yml | |
- httpie/**/*.py | |
- setup.* | |
- tests/**/*.py | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Windows setup | |
if: matrix.os == 'windows-latest' | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install --upgrade '.[dev]' | |
python -m pytest --verbose ./httpie ./tests | |
- name: Linux & Mac setup | |
if: matrix.os != 'windows-latest' | |
run: | | |
make install | |
make test |