Bump pytest from 7.4.3 to 8.0.2 in /py #68
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
name: Python CI | |
on: | |
push: | |
branches: [ main ] | |
paths: [ py/** ] | |
pull_request: | |
branches: [ main ] | |
paths: [ py/** ] | |
workflow_dispatch: | |
jobs: | |
get-inputs: | |
uses: ephemient/aoc2023/.github/workflows/get-inputs.yml@main | |
secrets: | |
SESSION: ${{ secrets.SESSION }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: snok/install-poetry@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
cache: poetry | |
- run: poetry install --no-interaction | |
working-directory: py | |
- run: poetry run pylint aoc2023 | |
working-directory: py | |
- run: poetry run black . --check | |
working-directory: py | |
- run: poetry run isort . --check | |
working-directory: py | |
- run: poetry run pytest --benchmark-skip | |
working-directory: py | |
- run: poetry build | |
working-directory: py | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: aoc2023-py | |
path: py/dist/*.whl | |
run: | |
needs: [ get-inputs, build ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- run: | | |
python -m venv . | |
. bin/activate | |
pip install *.whl | |
working-directory: aoc2023-py | |
- run: aoc2023-py/bin/aoc2023 | |
env: | |
AOC2023_DATADIR: inputs | |
PYTHON_HOME: aoc2023-py |