Refact/project setting #33
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: Run Test | |
on: | |
pull_request: | |
paths: | |
- waffledotcom/** | |
- .github/workflows/test.yaml | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
cache: poetry | |
- name: Set poetry environment | |
run: | | |
poetry env use 3.11 | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: Run tests | |
run: | | |
cd ${GITHUB_WORKSPACE}/waffledotcom/ | |
poetry run pytest --junit-xml=${GITHUB_WORKSPACE}/waffledotcom/test.xml ./ | |
- name: Test reports | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: backend tests | |
path: "./waffledotcom/test.xml" | |
reporter: java-junit | |
- name: Check Pylint | |
run: | | |
poetry run pylint -rn -sn --rcfile=${GITHUB_WORKSPACE}/.pylintrc ./waffledotcom |