Skip to content

Commit

Permalink
feat: add poetry to CI action and add dependabot config file
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Oct 17, 2021
1 parent 3400431 commit ee916c2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
tests/*
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
target-branch: "main"
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
# TODO(fedden): We need to discuss these steps: We could just use a test-supabase instance or we could update the docker image and use that for the tests.
steps:
Expand All @@ -22,11 +22,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry 2.1.0
uses: abatilo/actions-poetry@v2.1.0
with:
poetry-version: 1.1.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest requests
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: poetry install
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -42,6 +43,6 @@ jobs:
with:
time: "5s"
- name: Test with pytest
run: |
pytest -sx
run: poetry run pytest --cov=./ --cov-report=xml -sx
- name: Upload coverage
uses: codecov/codecov-action@v1

0 comments on commit ee916c2

Please sign in to comment.