From b9e025d3eda45380f3c87de2315aa5b83944a037 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Fri, 12 Jul 2024 08:56:23 -0400 Subject: [PATCH] Switch from Travis to GitHub Actions for CI It's easier for it all to be in one place. --- .github/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + .travis.yml | 4 ---- README.md | 2 -- 4 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..d1534937 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: CI +on: + pull_request: + push: + branches: + - master + +# 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: + generate: + name: generate + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Test generation + run: | + echo "from Default.settings import *" > settings.py + ./generate.py diff --git a/.gitignore b/.gitignore index 79461249..be4c3fa3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc __pycache__ env +/.idea/ # ignore mappings and settings files /mappings.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 53ce36e3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: python -script: - - echo "from Default.settings import *" > settings.py - - ./generate.py \ No newline at end of file diff --git a/README.md b/README.md index ba7dcdc5..97280fb2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ Python FHIR Parser ================== -[![Build Status](https://travis-ci.org/palfrey/fhir-parser.svg?branch=master)](https://travis-ci.org/palfrey/fhir-parser) - A Python FHIR specification parser for model class generation. If you've come here because you want _Swift_ or _Python_ classes for FHIR data models, look at our client libraries instead: