Skip to content

Merge pull request #62 from smart-on-fhir/mikix/cap-date #71

Merge pull request #62 from smart-on-fhir/mikix/cap-date

Merge pull request #62 from smart-on-fhir/mikix/cap-date #71

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
# The goal here is to cancel older workflows when a PR is updated (because it's pointless work)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
unittest:
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[tests]"
- name: Test with pytest
run: |
python -m pytest
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install linters
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run ruff
run: |
ruff check
ruff format --check