Skip to content

Update github action to setup python (#22) #20

Update github action to setup python (#22)

Update github action to setup python (#22) #20

Workflow file for this run

name: PyTest
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: python -m pip install --upgrade pip
- run: python -m pip install flake8 pytest
- run: python -m pytest -v
- run: flake8 .