This repository has been archived by the owner on May 29, 2024. It is now read-only.
Merge pull request #135 from okp4/ci/install-workflows #106
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 | |
on: | |
workflow_call: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-python-poetry: | |
timeout-minutes: 30 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install Python Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.3.1 | |
- name: Install project dependencies | |
run: | | |
poetry install | |
- name: Run unit tests | |
run: | | |
poetry run pytest -v |