Skip to content

Commit

Permalink
Add a github CI 'build' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel committed Feb 9, 2022
1 parent 6a0f9cb commit 2c4cc0f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,34 @@ jobs:
with:
env_vars: PYTHON_VERSION,DJANGO_VERSION,DB_ENGINE
fail_ci_if_error: true

build:
runs-on: ubuntu-latest
name: Build

steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Build with poetry
run: poetry build

0 comments on commit 2c4cc0f

Please sign in to comment.