Skip to content

Update tests.yml, try a different approach to pytest CI #4

Update tests.yml, try a different approach to pytest CI

Update tests.yml, try a different approach to pytest CI #4

Workflow file for this run

name: Test
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3.11 -
source $HOME/.poetry/env
shell: bash
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
- name: Run tests
run: python -m unittest discover tests