Skip to content

AoC 2023 day 17.

AoC 2023 day 17. #22

Workflow file for this run

# This workflow will install Python dependencies and run tests with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: AoC 2022 Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
if [ -f 2022/requirements.txt ]; then pip install -r 2022/requirements.txt; fi
- name: Test with pytest
working-directory: ./2022
run: |
python -m pytest .