Skip to content

Update version (#135) #218

Update version (#135)

Update version (#135) #218

# This is a basic workflow to help you get started with Actions
name: CI Tests
# Controls when the workflow will run
on:
push:
branches:
- main
paths:
- "fhir_pyrate/**"
- "tests/**"
pull_request:
paths:
- "fhir_pyrate/**"
- "tests/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10.6"]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Set up python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
# Install poetry
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry run pip install -U pip
poetry install -E all
- name: Run MyPy
run: |
poetry run mypy --install-types --non-interactive fhir_pyrate
poetry run mypy --install-types --non-interactive tests
- name: Run Flake8
run: |
poetry run flake8 fhir_pyrate/
poetry run flake8 tests/
- name: Run Tests
run: |
poetry run python -m unittest discover tests