2021-01-04 00:45:44 +05:30
|
|
|
name: Integration Tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2021-01-05 12:41:51 +05:30
|
|
|
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.9-dev, 3.10-dev]
|
2021-01-04 00:45:44 +05:30
|
|
|
fail-fast: false
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-01-04 02:48:07 +05:30
|
|
|
python-version: ${{ matrix.python-version }}
|
2021-01-04 00:45:44 +05:30
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2021-01-04 02:19:31 +05:30
|
|
|
pip install -U wheel setuptools coveralls
|
2021-01-04 00:45:44 +05:30
|
|
|
pip install -Ur requirements.txt
|
|
|
|
python setup.py develop
|
|
|
|
- name: Lint
|
|
|
|
run: |
|
|
|
|
flake8
|
2021-01-04 02:31:00 +05:30
|
|
|
- name: Run tests
|
2021-01-04 02:48:07 +05:30
|
|
|
if: ${{ matrix.os != 'ubuntu-latest' || matrix.python-version != '3.8' }}
|
2021-01-04 00:45:44 +05:30
|
|
|
run: |
|
2021-01-03 21:04:16 +01:00
|
|
|
coverage run --source=thefuck,tests -m py.test -v --capture=sys tests
|
2021-01-04 02:48:07 +05:30
|
|
|
- name: Run tests (including functional)
|
|
|
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
|
2021-01-04 00:45:44 +05:30
|
|
|
run: |
|
2021-01-04 02:31:00 +05:30
|
|
|
coverage run --source=thefuck,tests -m py.test -v --capture=sys tests --enable-functional
|
|
|
|
- name: Post coverage results
|
2021-01-04 02:48:07 +05:30
|
|
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
|
2021-01-03 21:46:33 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-01-04 01:26:23 +05:30
|
|
|
run: |
|
2021-01-03 21:24:40 +01:00
|
|
|
coveralls
|