Skip to content

docs: Document medications table #4563

docs: Document medications table

docs: Document medications table #4563

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: opensafely-core/setup-action@v1
with:
install-just: true
python-version: "3.11"
- name: Check formatting, linting and import sorting
run: just check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: opensafely-core/setup-action@v1
with:
install-just: true
python-version: "3.11"
- name: Run tests
env:
CI: 1
run: just test-all
lint-dockerfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf #v3.1.0
with:
failure-threshold: error
tag-new-version:
# This uses `conventional commits` to generate tags. A full list
# of valid prefixes is here:
# https://github.com/commitizen/conventional-commit-types/blob/master/index.json
#
# fix, perf -> patch release
# feat -> minor release
# BREAKING CHANGE in footer -> major release
#
# anything else (docs, refactor, etc) does not create a release
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: [check, test]
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.new_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: tag
uses: mathieudutour/github-tag-action@fcfbdceb3093f6d85a3b194740f8c6cec632f4e2 #v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
release_branches: main
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: opensafely-core/setup-action@v1
with:
python-version: "3.11"
- name: Install package
run: pip install .