Skip to content

Commit

Permalink
ci: add timeout for pip to avoid building from source
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Oct 18, 2020
1 parent e5a538d commit b74930d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.8'

- run: pip install .[tests,lint]
timeout-minutes: 2

- run: flake8
- run: mypy . src
Expand All @@ -39,9 +40,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.8'

- run: pip install .[tests]
timeout-minutes: 2

- run: pytest
env:
Expand All @@ -54,8 +56,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.8'

- run: pip install .[tests]
timeout-minutes: 2

- run: pytest

0 comments on commit b74930d

Please sign in to comment.