You've already forked httpie-cli
							
							
				mirror of
				https://github.com/httpie/cli.git
				synced 2025-10-30 23:47:52 +02:00 
			
		
		
		
	Running tests through `python setup.py test` is deprecated:
> WARNING: Testing via this command is deprecated and will be removed
> in a future version. Users looking for a generic test entry point
> independent of test runner are encouraged to use tox.
I am not in favor of moving back to `tox`, we should simply run tests
using `python -m pytest` (or `make test`) and that's it.
A new extra was added, `dev`, to install development requirements:
    $ python -m pip install --upgrade --editable '.[dev]'
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build
 | |
| on: [push, pull_request]
 | |
| jobs:
 | |
|   extras:
 | |
|     # Run coverage and extra tests only once
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v1
 | |
|       - uses: actions/setup-python@v1
 | |
|         with:
 | |
|           python-version: 3.9
 | |
|       - run: python -m pip install --upgrade pip setuptools wheel
 | |
|       - run: make install
 | |
|       - run: make codestyle
 | |
|       - run: make test-cover
 | |
|       - run: make codecov-upload
 | |
|         env:
 | |
|           CODECOV_TOKEN: ${{ secrets.CODECOV_REPO_TOKEN }}
 | |
|       - run: make test-dist
 | |
|   test:
 | |
|     # Run core HTTPie tests everywhere
 | |
|     runs-on: ${{ matrix.os }}
 | |
|     strategy:
 | |
|       matrix:
 | |
|         os: [ubuntu-latest, macOS-latest, windows-latest]
 | |
|         python-version: [3.6, 3.7, 3.8, 3.9]
 | |
|     steps:
 | |
|       - uses: actions/checkout@v1
 | |
|       - uses: actions/setup-python@v1
 | |
|         with:
 | |
|           python-version: ${{ matrix.python-version }}
 | |
|       - run: python -m pip install --upgrade pip setuptools wheel
 | |
|       - run: python -m pip install --upgrade '.[dev]'
 | |
|       - run: python -m pytest --verbose ./httpie ./tests
 |