Skip to content

Commit

Permalink
Update Workflows #20 from IvanildoBarauna/devel
Browse files Browse the repository at this point in the history
[PROD] Added and Update Workflows
  • Loading branch information
IvanildoBarauna authored May 9, 2024
2 parents 8f34460 + 8bd5970 commit 7e5daf4
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 51 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Docker Image CI

on:
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Build Docker Image
run: |
docker-compose up --build -d
- name: Run Docker image
run: |
docker run etl-awesome-api-compose
51 changes: 0 additions & 51 deletions .github/workflows/run_application.yaml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests CI

on:
pull_request:
branches:
- main

jobs:
tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Gerar o arquivo .env
echo "SERVER_URL=https://economia.awesomeapi.com.br" > .env
- name: Run tests
run: pytest

0 comments on commit 7e5daf4

Please sign in to comment.