Skip to content

Commit d9cb9b7

Browse files
committed
Travis CI: Remove redundant tests
1 parent 7a50270 commit d9cb9b7

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

Diff for: .travis.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,20 @@ dist: focal
33
language: python
44
python: 3.8
55
cache: pip
6-
before_install: pip install --upgrade pip setuptools six
7-
install: pip install black flake8
6+
install:
7+
- pip install --upgrade pip setuptools six
8+
- pip install -r requirements_pytest.txt
89
jobs:
910
include:
1011
- name: Build
11-
before_script:
12-
- black --check . || true
13-
- flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=88 --statistics --count .
14-
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
15-
- pip install -r requirements.txt # fast fail on black, flake8, validate_filenames
1612
script:
17-
- mypy --ignore-missing-imports . || true # https://github.com/python/mypy/issues/7907
1813
- pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
1914
- name: Project Euler
20-
before_script:
21-
- pip install pytest-cov pytest-subtests
22-
- pytest --tb=no --no-summary --capture=no project_euler/validate_solutions.py || true # fail fast on wrong solution
2315
script:
16+
- pytest --tb=no --no-summary --capture=no project_euler/validate_solutions.py || true # fail fast on wrong solution
2417
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
2518
after_success:
2619
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
2720
notifications:
28-
webhooks: https://www.travisbuddy.com/
29-
on_success: never
21+
webhooks: https://www.travisbuddy.com/
22+
on_success: never

Diff for: requirements.txt

-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
beautifulsoup4
2-
black
32
fake_useragent
4-
flake8
53
keras
64
lxml
75
matplotlib
8-
mypy
96
numpy
107
opencv-python
118
pandas
129
pillow
13-
pre-commit
14-
pytest
15-
pytest-cov
1610
requests
1711
scikit-fuzzy
1812
sklearn

Diff for: requirements_pytest.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-r requirements.txt
2+
3+
pytest
4+
pytest-cov
5+
pytest-subtests

0 commit comments

Comments
 (0)