Skip to content

Commit

Permalink
Add GitHub Actions workflow for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Degrante77 committed Jan 23, 2025
1 parent 04235c6 commit 0faeae4
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
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 not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 0faeae4

Please sign in to comment.