Skip to content

feat: remove support for python 3.8 #231

feat: remove support for python 3.8

feat: remove support for python 3.8 #231

Workflow file for this run

name: Tests
on:
# only run tests when src code changes
push:
branches:
- main
paths:
- "lgtm_db/**"
- "tests/**"
- ".github/workflows/tests.yml"
pull_request:
branches:
- main
paths:
- "lgtm_db/**"
- "tests/**"
- ".github/workflows/tests.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-gallery-html:
name: Checks if the gallery html file is up-to-date
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
check-latest: false
- name: Setup python dependencies
# Do regular install NOT editable install
run: |
python -m pip install --upgrade uv
uv pip install --system '.[dev]'
- name: Run the comparison of gallery files
run: |
mv docs/index.html docs/index-old.html
python -m scripts.generate_gallery
diff docs/index.html docs/index-old.html
run-pytest:
name: Runs pytest tests
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
experimental: [false]
# include:
# - python-version: "3.13-dev"
# experimental: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
check-latest: false
- name: Setup python dependencies
# Do regular install NOT editable install
run: |
python -m pip install --upgrade uv
uv pip install --system '.[dev]'
- name: Run pytest
run: |
pytest