Skip to content

Update codelab-python-workflow-1.yml - added test steps #6

Update codelab-python-workflow-1.yml - added test steps

Update codelab-python-workflow-1.yml - added test steps #6

name: Python package
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel numpy pandas
- name: Test
run: python book-fluent-python/CH1/p10-vector-class__repr__abs__add__mul__.py