mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 18:53:21 +01:00
4c8633c6e5
* Split the monolithic workflow into specific ones * Rename workflows, improve commands * Update pip from the venv * Fix Windows setup * Lowercase macos-latest * Fix Windows run, again
41 lines
968 B
YAML
41 lines
968 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- httpie/**/*.py
|
|
- setup.*
|
|
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.6, 3.7, 3.8, 3.9, "3.10.0-rc.2"]
|
|
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
|
|
- name: Linux & Mac setup
|
|
if: matrix.os != 'windows-latest'
|
|
run: |
|
|
make install
|
|
make test
|