-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
90 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,41 @@ | ||
--- | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: load cached poetry installation | ||
id: cached-poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.local | ||
key: poetry-v1-${{ hashFiles("pyproject.toml") }} | ||
|
||
- name: install poetry | ||
if: steps.cached-poetry.outputs.cache-hit != "true" | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.6.1 | ||
|
||
- name: Install gettext for correct manage.py compilemessages | ||
run: sudo apt-get update && sudo apt-get --no-install-recommends install -y locales-all gettext | ||
- name: install python | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: "poetry" | ||
python-version-file: "pyproject.toml" | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
- name: make sure poetry lockfile is up to date | ||
run: poetry check --lock | ||
|
||
- name: Install cookiecutter | ||
run: pip install cookiecutter | ||
- name: install deps | ||
if: steps.setup-python.outputs.cache-hit != "true" | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Bootstrap the project | ||
run: make test | ||
- name: bootstrap | ||
run: make bootstrap |