1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-20 01:28:56 +00:00

36 lines
1.1 KiB
YAML
Raw Normal View History

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]
pyversion: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
run: |
2021-01-03 20:43:23 +01:00
pip install -U pip coverage coveralls
2021-01-04 00:45:44 +05:30
pip install -Ur requirements.txt
python setup.py develop
- name: Lint
run: |
flake8
- name: Test
run: |
python -m coverage run --source=thefuck,tests -m py.test -v --capture=sys tests
2021-01-04 01:23:24 +05:30
- name: Functional Test
2021-01-04 00:45:44 +05:30
if: ${{ matrix.os == 'ubuntu-latest' && matrix.pyversion == '3.8' }}
run: |
2021-01-04 01:23:24 +05:30
python -m coverage run --source=thefuck,tests -m py.test -v --capture=sys tests -m functional
- name: Post Coverage to Coveralls
if: ${{ matrix.os == 'ubuntu-latest' && matrix.pyversion == '3.8' }}
2021-01-04 00:45:44 +05:30
python -m coveralls