CIMS-4 - Install fastapi and spin up local Hello World application #57
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: # yamllint disable-line rule:truthy | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: "${{ github.head_ref || github.ref }}-${{ github.workflow }}" | |
cancel-in-progress: true | |
jobs: | |
lint-test: | |
name: Lint and Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry==1.8.3 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: .python-version | |
cache: poetry | |
- name: Install dependencies | |
run: make install-dev | |
- name: Lint Python | |
run: make lint | |
- name: Test | |
run: make test |