Skip to content

day 17 notebook part 1 + progress #27

day 17 notebook part 1 + progress

day 17 notebook part 1 + progress #27

Workflow file for this run

name: Python Test Workflow
on:
push:
paths:
- 'py/**'
- '.github/workflows/python.yml'
pull_request:
paths:
- 'py/**'
- '.github/workflows/python.yml'
workflow_dispatch:
jobs:
test-py:
name: Test Python Solutions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
working-directory: ./py
- name: Add 'solutions' to PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/solutions" >> $GITHUB_ENV
working-directory: ./py
- name: Run tests with `pytest`
env:
PYTEST_ADDOPTS: "--color=yes"
run: poetry run pytest -v ./tests/*
working-directory: ./py