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

38 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]
2021-01-03 21:27:56 +01:00
pyversion: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
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:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
run: |
2021-01-04 02:12:52 +05:30
pip install -U pip wheel setuptools 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: |
2021-01-03 21:04:16 +01:00
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-03 21:04:16 +01:00
coverage run --source=thefuck,tests -m py.test -v --capture=sys tests -m functional --enable-functional
2021-01-04 01:23:24 +05:30
- name: Post Coverage to Coveralls
2021-01-03 21:24:40 +01:00
if: ${{ matrix.os == 'ubuntu-latest' && matrix.pyversion == '3.8' }}
2021-01-04 01:26:23 +05:30
run: |
2021-01-03 21:24:40 +01:00
coveralls