Skip to content
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
4 changes: 2 additions & 2 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ update_configs:
default_assignees:
- "TomerFi"
default_labels:
- "dependencies"
- "dependabot"

- package_manager: "python"
directory: "/docs/"
Expand All @@ -21,4 +21,4 @@ update_configs:
default_assignees:
- "TomerFi"
default_labels:
- "dependencies"
- "dependabot"
6 changes: 2 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Description
# Description

A clear and concise description of what was changed and why.

**Related issue (if any):** fixes #<issue number goes here>

## Checklist
- [ ] I've followed the contributing guidelines.
76 changes: 66 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
branch: dev

jobs:
build:
verify:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8]
name: Build project with Python ${{ matrix.python }}
name: Verify project with Python ${{ matrix.python }}
steps:
- name: Source checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
pip install --upgrade pip poetry
poetry config virtualenvs.create false --local
poetry install -vv -E "checkers" -E "tests"
poetry install -vv -E "checkers"

- name: Lint yaml files
run: yamllint --config-file .yamllint --format colored --strict .
Expand All @@ -64,17 +64,73 @@ jobs:
- name: Check static typing with mypy
run: mypy --follow-imports silent --ignore-missing-imports src/ tests/ docs/

- name: Perform unit tests with coverage report
run: pytest -vs --cov --cov-config=.coveragerc --cov-report=xml:coverage_report/coverage.xml
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8]
name: Test project with Python ${{ matrix.python }}
steps:
- name: Source checkout
uses: actions/checkout@v2

- name: Push coverage report to CodeCov
uses: codecov/codecov-action@v1
- name: Cache pip repository
uses: actions/cache@v1
with:
file: ./coverage_report/coverage.xml
fail_ci_if_error: true
path: ~/.cache/pypoetry
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-pip-

- name: Cache poetry repository
uses: actions/cache@v1
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-poetry-

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
run: |
pip install --upgrade pip poetry
poetry config virtualenvs.create false --local
poetry install -vv -E "tests"

- name: Perform unit tests
if: matrix.python != 3.8
run: pytest -vs

- name: Perform unit tests with coverage report
if: matrix.python == 3.8
run: pytest -vs --cov --cov-config=.coveragerc --cov-report=xml:coverage.xml

- name: Upload coverage report as artifact
if: matrix.python == 3.8
uses: actions/upload-artifact@v1
with:
name: coverage-report
path: ./coverage_report/coverage.xml
path: ./coverage.xml

coverage:
runs-on: ubuntu-latest
name: Push coverage report to CodeCov
needs: [verify, test]
steps:
- name: Source checkout
uses: actions/checkout@v2

- name: Download coverage report from artifacts
uses: actions/download-artifact@v1
with:
name: coverage-report

- name: Push to CodeCov
uses: codecov/codecov-action@v1
with:
file: coverage-report/coverage.xml
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
pre-release:
runs-on: ubuntu-latest
name: Build pre-release and publish to GitHub
strategy:
matrix:
python: [3.8]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
release:
runs-on: ubuntu-latest
name: Build pre-release and publish to PyPi
strategy:
matrix:
python: [3.8]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/wip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on: pull_request
jobs:
set-pr-status:
runs-on: ubuntu-latest
name: Set WIP PRs as pending
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
135 changes: 102 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading