Python Version upgrade, Dockerisation, GitHub Actions testing, repo tidy. #1
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: 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 |