Skip to content

Python Version upgrade, Dockerisation, GitHub Actions testing, repo tidy. #1

Python Version upgrade, Dockerisation, GitHub Actions testing, repo tidy.

Python Version upgrade, Dockerisation, GitHub Actions testing, repo tidy. #1

name: Run Pytest on pushes to main branches or PRs to any branch
on:
pull_request:
branches:
- "*"
push:
branches:
- development
- staging
- live
jobs:
deploy:
runs-on: ubuntu-latest
# Runs tests on multiple python versions across the range we support
strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python version ${{ 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)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install -r requirements.txt
- name: Run pytest
run: |
pytest