Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/ci #62

Merged
merged 13 commits into from
Jan 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ on:
- master
pull_request:
jobs:
wip:
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
name: Check for WIP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
black-test:
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
name: Black Python code format
runs-on: ubuntu-latest
steps:
Expand All @@ -24,6 +31,7 @@ jobs:
- name: Ensure contributor used ("black ./") before commit
run: black --check .
test:
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -39,17 +47,20 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: dschep/install-poetry-action@v1.2
uses: snok/install-poetry@v1.1.1
with:
version: 1.1.4

- name: Install Dependencies
run: |
poetry export --without-hashes --dev -f requirements.txt > requirements.txt
pip install -r requirements.txt
poetry config virtualenvs.create false
poetry install

- name: Run Tests
run: bash scripts/get-coverage.sh
run: |
coverage run --concurrency=multiprocessing -m pytest --hypothesis-profile=pypeln
coverage combine
coverage xml --omit '.venv/*' --omit '*_test.py'

- name: Upload coverage
uses: codecov/codecov-action@v1
4 changes: 3 additions & 1 deletion benchmarks/100_million_downloads/client-pypeln-idiomatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ async def fetch(url):
return await response.read()

await pl.task.each(
fetch, urls, workers=limit,
fetch,
urls,
workers=limit,
)


Expand Down
3 changes: 3 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from hypothesis import settings

settings.register_profile("pypeln", deadline=1000)
Loading