Skip to content

Commit 77ee850

Browse files
authored
Merge pull request #24 from rafsaf/release_v4
Release v4
2 parents 1cce9d3 + c766d2f commit 77ee850

File tree

92 files changed

+2000
-4189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2000
-4189
lines changed

.github/workflows/build_docker_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: "3.10"
22+
python-version: "3.11"
2323

2424
- name: Generate projects from templates using cookiecutter
2525
# minimal_project folder

.github/workflows/manual_build_docker_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: "3.10"
20+
python-version: "3.11"
2121

2222
- name: Generate projects from templates using cookiecutter
2323
# minimal_project folder

.github/workflows/tests.yml

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,30 @@ jobs:
2424
- name: Set up Python
2525
uses: actions/setup-python@v2
2626
with:
27-
python-version: "3.10"
27+
python-version: "3.11"
2828

29-
- name: Generate projects from templates using cookiecutter
30-
# fastapi_users_project folder
31-
# minimal_project folder
29+
# Below will create fresh template in path: minimal_project
30+
- name: Generate project from template using cookiecutter
3231
run: |
3332
pip install cookiecutter
3433
python tests/create_minimal_project.py
35-
python tests/create_fastapi_users_project.py
3634
3735
- name: Install Poetry
3836
uses: snok/install-poetry@v1
3937
with:
4038
virtualenvs-create: true
4139
virtualenvs-in-project: true
4240

43-
### template minimal ###
44-
45-
- name: Load cached venv-1
46-
id: cached-poetry-dependencies-template-1
41+
# run tests from folder minimal_project
42+
- name: Load cached venv
43+
id: cached-poetry-dependencies-template
4744
uses: actions/cache@v2
4845
with:
4946
path: minimal_project/.venv
5047
key: venv-${{ runner.os }}-${{ hashFiles('minimal_project/poetry.lock') }}
5148

5249
- name: Install template minimal dependencies
53-
if: steps.cached-poetry-dependencies-template-1.outputs.cache-hit != 'true'
50+
if: steps.cached-poetry-dependencies-template.outputs.cache-hit != 'true'
5451
run: |
5552
cd minimal_project
5653
poetry install --no-interaction --no-root
@@ -66,30 +63,3 @@ jobs:
6663
cd minimal_project
6764
poetry run flake8 app --count --exit-zero --statistics
6865
poetry run coverage run -m pytest
69-
70-
### template fastapi users ###
71-
72-
- name: Load cached venv-2
73-
id: cached-poetry-dependencies-template-2
74-
uses: actions/cache@v2
75-
with:
76-
path: fastapi_users_project/.venv
77-
key: venv-${{ runner.os }}-${{ hashFiles('fastapi_users_project/poetry.lock') }}
78-
79-
- name: Install template fastapi users dependencies
80-
if: steps.cached-poetry-dependencies-template-1.outputs.cache-hit != 'true'
81-
run: |
82-
cd fastapi_users_project
83-
poetry install --no-interaction --no-root
84-
85-
- name: Run template fastapi users flake8 and then tests
86-
env:
87-
TEST_DATABASE_HOSTNAME: localhost
88-
TEST_DATABASE_PASSWORD: postgres
89-
TEST_DATABASE_PORT: 5432
90-
TEST_DATABASE_USER: postgres
91-
TEST_DATABASE_DB: postgres
92-
run: |
93-
cd fastapi_users_project
94-
poetry run flake8 app --count --exit-zero --statistics
95-
poetry run coverage run -m pytest

0 commit comments

Comments
 (0)