Skip to content

Commit

Permalink
ci: Run compile before alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Aug 23, 2024
1 parent 503f494 commit 5eaa3d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
shell: bash
run: |
pybabel compile -f -d locale
alembic upgrade head
alembic check
pybabel compile -f -d locale
pytest -W error --cov app --random-order --random-order-bucket=global
- env:
TEST_SETTINGS: True
Expand Down
12 changes: 6 additions & 6 deletions docs/contributing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Setup
pre-commit install
#. Compile message catalogs:

.. code-block:: bash
pybabel compile -f -d locale
#. Create development and test databases. To use the default ``DATABASE_URL``, create a database named ``credere_backend`` to which your shell user has access.

To customize settings (for example, to use a different ``DATABASE_URL``), create a ``.env`` file based on the ``.env.example`` file.
Expand All @@ -39,12 +45,6 @@ Setup
alembic upgrade head
#. Compile message catalogs:

.. code-block:: bash
pybabel compile -f -d locale
Repository structure
--------------------

Expand Down

0 comments on commit 5eaa3d7

Please sign in to comment.