Pipeline run by @iplitharas #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Project Template | |
run-name: Pipeline run by @${{ github.actor }} | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.6.1 | |
- name: Set Poetry config | |
run: | | |
poetry config virtualenvs.create false | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Code Quality | |
run: | | |
make check | |
- name: Run test cases | |
run: | | |
make test | |
- name: Upload coverage reports | |
id: upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage-reports | |
path: | | |
coverage.xml | |
htmlcov/ | |