Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROD] Added and Update Workflows #20

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Awesome Project: ETL Process for Currency Quotes Data

![Project Status](https://img.shields.io/badge/status-em%20desenvolvimento-yellow) ![License](https://img.shields.io/badge/license-MIT-blue)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/IvanildoBarauna/ETL-awesome-api)
![Python Version](https://img.shields.io/badge/python-3.9-blue) ![License](https://img.shields.io/badge/license-MIT-blue)
![GitHub Workflow Status](https://github.com/IvanildoBarauna/ETL-awesome-api/actions/workflows/run_application.yaml/badge.svg)


Project description
This project, called "Awesome Project: ETL Process for Currency Quotes Data", is a solution dedicated to extracting, transforming and loading (ETL) currency quote data. It makes a single request to a specific endpoint to obtain quotes for multiple currencies.

Expand Down
Loading