Skip to content

revising testing action #3

revising testing action

revising testing action #3

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
strategy:
matrix:
python-version: [3.10, 3.11, 3.12]
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.poetry/bin:$PATH"
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest