Skip to content

Commit

Permalink
Add GH Actions y remove Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Villavicencio committed Mar 27, 2020
1 parent c627dfc commit 86200ad
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 10 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/flask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Flask

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coveralls
- name: Set up project
run: |
python manage.py db upgrade
- name: Run Tests
run: |
coverage run manage.py test
13 changes: 13 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pull_request_rules:
- name: automatic merge for Dependabot pull requests
conditions:
- author=dependabot-preview[bot]
- status-success=build (macos-latest, 10)
- status-success=build (macos-latest, 12)
- status-success=build (windows-latest, 10)
- status-success=build (windows-latest, 12)
- status-success=build (ubuntu-latest, 10)
- status-success=build (ubuntu-latest, 12)
actions:
merge:
method: squash
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Airtng App: Part 1 - Workflow Automation with Python | Flask
> We are currently in the process of updating this sample template. If you are encountering any issues with the sample, please open an issue at [github.com/twilio-labs/code-exchange/issues](https://github.com/twilio-labs/code-exchange/issues) and we'll try to help you.
[![Build Status](https://travis-ci.org/TwilioDevEd/airtng-flask.svg?branch=master)](https://travis-ci.org/TwilioDevEd/airtng-flask)
![](https://github.com/TwilioDevEd/airtng-flask/workflows/Flask/badge.svg)


Learn how to automate your workflow using Twilio's REST API and Twilio SMS. This example app is a vacation rental site, where the host can confirm a reservation via SMS.
Expand Down

0 comments on commit 86200ad

Please sign in to comment.