Add pytest workflow #1
Workflow file for this run
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
# This is a basic workflow to help you get started with Actions | |
name: Run Python Unittests | |
# Controls when the action will run. | |
on: | |
push: | |
paths: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install pytest and poetry | |
run: pip install pytest poetry | |
- name: Install dependencies | |
run: poetry install | |
working-directory: ./service/src/structure_comparer | |
- name: Run tests | |
run: pytest |