2021-09-08 16:41:55 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
2021-10-05 21:28:39 +02:00
|
|
|
- .github/workflows/tests.yml
|
2021-09-08 16:41:55 +02:00
|
|
|
- httpie/**/*.py
|
|
|
|
- setup.*
|
2021-10-05 21:28:39 +02:00
|
|
|
- tests/**/*.py
|
2021-09-08 16:41:55 +02:00
|
|
|
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]
|
2022-01-14 17:49:05 +01:00
|
|
|
python-version: [3.7, 3.8, 3.9, "3.10"]
|
2021-09-23 10:37:23 +02:00
|
|
|
pyopenssl: [0, 1]
|
2021-09-08 16:41:55 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
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
|
2021-09-23 10:37:23 +02:00
|
|
|
env:
|
|
|
|
HTTPIE_TEST_WITH_PYOPENSSL: ${{ matrix.pyopenssl }}
|
2021-09-08 16:41:55 +02:00
|
|
|
- name: Linux & Mac setup
|
|
|
|
if: matrix.os != 'windows-latest'
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make test
|
2021-09-23 10:37:23 +02:00
|
|
|
env:
|
|
|
|
HTTPIE_TEST_WITH_PYOPENSSL: ${{ matrix.pyopenssl }}
|