This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Fix broken reference in JSON schema #65
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: CI | |
on: | |
push: | |
paths: | |
- 'model_card_toolkit/**' | |
- '.github/workflows/ci.yml' | |
- 'setup.py' | |
- 'pyproject.toml' | |
branches: | |
- main | |
- r* | |
pull_request: | |
paths: | |
- 'model_card_toolkit/**' | |
- '.github/workflows/ci.yml' | |
- 'setup.py' | |
- 'pyproject.toml' | |
branches: | |
- main | |
- r* | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
name: [base, all] | |
include: | |
- name: base | |
dependencies: test | |
tests: model_card_toolkit --ignore-requires-optional-deps | |
- name: all | |
dependencies: all | |
tests: model_card_toolkit --fail-if-skipped | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Cache python environment | |
uses: actions/cache@v3 | |
with: | |
# Cache pip | |
path: ~/.cache/pip | |
# Check the cache for a given setup.py + MCT version | |
key: ${{ runner.os }}-pip-${{ matrix.name }}-${{ hashFiles('model_card_toolkit/version.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -e ".[${{ matrix.dependencies }}]" | |
- name: Run tests | |
run: pytest ${{ matrix.tests }} |