feat: add toddler skiing gif (#101) #221
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: 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@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
check-latest: false | |
- name: Setup python dependencies | |
run: pip install ".[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.8", "3.9", "3.10", "3.11"] | |
experimental: [false] | |
include: | |
- python-version: "3.12-dev" | |
experimental: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
check-latest: false | |
- name: Setup python dependencies | |
run: pip install ".[dev]" | |
- name: Run pytest | |
run: | | |
pytest |