Skip to content

Commit

Permalink
Fix coveralls build
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Mar 1, 2021
1 parent 571724c commit ee404df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: 4.4
- uses: supercharge/redis-github-action@1.2.0
with:
redis-version: '6'

# Cache packages per python version, and reuse until setup.py changes
- name: Cache pip packages
Expand All @@ -46,6 +49,13 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: 4.4
- uses: supercharge/redis-github-action@1.2.0
with:
redis-version: '6'

- name: Cache pip packages
uses: actions/cache@v2
with:
Expand All @@ -64,7 +74,7 @@ jobs:
- name: Run linter
run: flake8 aiohttp_client_cache
- name: Generate code coverage report
run: pytest --cov --cov-report=term --cov-report=html
run: pytest test --cov=aiohttp_client_cache --cov-report=term --cov-report=html
- name: Send code coverage report to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit ee404df

Please sign in to comment.