Skip to content

Commit 9cd2d33

Browse files
committed
Move CI to Github Actions
1 parent 2f70990 commit 9cd2d33

6 files changed

Lines changed: 44 additions & 324 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
13+
os: [ubuntu-latest, macOS-latest, windows-latest]
14+
include:
15+
# pypy3 on Mac OS currently fails trying to compile
16+
# brotlipy. Moving pypy3 to only test linux.
17+
- python-version: pypy3
18+
os: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
make
29+
- name: Run tests
30+
run: |
31+
make ci

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
.PHONY: docs
22
init:
3-
pip install pipenv --upgrade
4-
pipenv install --dev
3+
pip install -e .[socks]
4+
pip install -r requirements-dev.txt
55
test:
66
# This runs all of the tests, on both Python 2 and Python 3.
77
detox
88
ci:
9-
pipenv run py.test -n 8 --boxed --junitxml=report.xml
9+
pytest tests --junitxml=report.xml
1010

1111
test-readme:
12-
@pipenv run python setup.py check --restructuredtext --strict && ([ $$? -eq 0 ] && echo "README.rst and HISTORY.rst ok") || echo "Invalid markup in README.rst or HISTORY.rst!"
12+
python setup.py check --restructuredtext --strict && ([ $$? -eq 0 ] && echo "README.rst and HISTORY.rst ok") || echo "Invalid markup in README.rst or HISTORY.rst!"
1313

1414
flake8:
15-
pipenv run flake8 --ignore=E501,F401,E128,E402,E731,F821 requests
15+
flake8 --ignore=E501,F401,E128,E402,E731,F821 requests
1616

1717
coverage:
18-
pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests
18+
pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests
1919

2020
publish:
2121
pip install 'twine>=1.5.0'
@@ -25,4 +25,4 @@ publish:
2525

2626
docs:
2727
cd docs && make html
28-
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
28+
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"

_appveyor/install.ps1

Lines changed: 0 additions & 229 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pytest>=2.8.0,<=3.10.1
2+
pytest-cov
3+
pytest-httpbin<1.0
4+
pytest-mock==2.0.0
5+
httpbin==0.7.0
6+
wheel

0 commit comments

Comments
 (0)