Skip to content

Refactoring to make testing easier & adding tests (#96) #4

Refactoring to make testing easier & adding tests (#96)

Refactoring to make testing easier & adding tests (#96) #4

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
tests:
name: Run pytest
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install required packages
run: |
poetry install
- name: Run pytest
run: |
poetry run python -m pytest