Skip to content

Commit

Permalink
Add cd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bear-Witness-98 committed Jul 19, 2024
1 parent a892d27 commit 72b59d9
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@
name: 'Continuous Delivery'

on:
...
on:
pull_request:
branches:
- develop
paths:
- 'challenge/**'
- 'scripts/**'
- '.github/**'
- 'pyproject.toml'
- 'poetry.lock'

jobs:
...
jobs:
run_testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check directory
run: |
ls
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10.8'
- name: Python version
run: |
python --version
- name: Install poetry and virtualenv
run: |
pip install poetry
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry lock --no-update
poetry install
- name: Push to prod
run: |
bash scripts/deploy.sh
- name: Run stress test
run: |
make stress-test

0 comments on commit 72b59d9

Please sign in to comment.