Skip to content

Learning improvements / testing. #254

Learning improvements / testing.

Learning improvements / testing. #254

Workflow file for this run

---
name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
schedule:
- cron: "0 0 * * 1"
jobs:
linting:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -eo pipefail {0}
permissions:
contents: read
packages: read
statuses: write
steps:
- name: checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Check whether the citation metadata from CITATION.cff is valid
uses: citation-file-format/cffconvert-github-action@2.0.0
with:
args: "--validate"
- name: Pre-commit
run: |
pip install pre-commit
SKIP=no-commit-to-branch pre-commit run --all-files
unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Pip install
run: |
pip install .[tests]
- name: pytest
shell: bash -eo pipefail {0}
run: |
pytest ./tests