-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for CI/CD
- Loading branch information
1 parent
04235c6
commit 0faeae4
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run tests | ||
run: | | ||
pytest | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy to server | ||
run: | | ||
echo "Deploying application..." | ||
# Add your deployment commands here |
Binary file modified
BIN
+133 Bytes
(150%)
backend/personal_financial_tracker/budget_spending/__pycache__/admin.cpython-313.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
backend/personal_financial_tracker/budget_spending/__pycache__/models.cpython-313.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
backend/personal_financial_tracker/fin_tracker/__pycache__/settings.cpython-313.pyc
Binary file not shown.