Skip to content

Commit

Permalink
parent project ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hnthh committed Dec 1, 2023
1 parent 2872826 commit f78cb87
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 90 deletions.
78 changes: 0 additions & 78 deletions .circleci/config.yml

This file was deleted.

41 changes: 29 additions & 12 deletions .github/workflows/ci.yml
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

0 comments on commit f78cb87

Please sign in to comment.