Skip to content

Commit

Permalink
Merge pull request #83 from unb-mds/pipeline
Browse files Browse the repository at this point in the history
pipeline
  • Loading branch information
Vini47 authored Sep 3, 2024
2 parents 4580fbf + ebd62ac commit e15b918
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
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:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run
run: |
python -m http.server 8000 &
sleep 5
curl -I http://localhost:8000/index.html
- name: Set up Git for deployment
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- name: deploy
run: |
git checkout -b projeto_deploy || git checkout projeto_deploy
git add .
git commit -m "Deploy changes to projeto_deploy branch"
git push origin projeto_deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fastapi==0.112.0
uvicorn==0.30.5
requests==2.32.3
requests==2.32.3
pytest==8.3.2

0 comments on commit e15b918

Please sign in to comment.