Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy QA to Master #811

Merged
merged 4 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: test-scaffold-updates

on:
pull_request:
branches:
- develop

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install Cookiecutter
run: pip install cookiecutter

- name: Install Pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv

- name: Scaffold a new project with Cookiecutter
run: |
pipenv run cookiecutter https://github.com/crowdbotics/django-scaffold \
--checkout ${{ github.head_ref }} \
--no-input --output-dir tmp_cookiecutter_output \
project_name="Test project" \
project_generated_name="test-project" \

- name: Install Scaffold dependencies
working-directory: tmp_cookiecutter_output/testproject
run: |
pipenv install

- name: Run Scaffold tests
working-directory: tmp_cookiecutter_output/testproject
env:
SECRET_KEY: "thisisasimplekey"
run: |
pipenv run python manage.py migrate
pipenv run python manage.py test
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python_version = "3.9"
[packages]
cryptography = "~=42.0.4"
django = "==3.2.25"
"boto3" = "~=1.34.59"
"boto3" = "~=1.35.14"
django-environ = "~=0.11.2"
django-storages = "~=1.14"
psycopg2 = "<=2.9.9"
Expand Down
128 changes: 65 additions & 63 deletions {{cookiecutter.project_slug}}/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.