Skip to content

Commit

Permalink
prepara repo de github
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Sanchez committed Oct 8, 2020
1 parent b282fd1 commit a4aa023
Show file tree
Hide file tree
Showing 8 changed files with 149 additions and 90 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [chekos, tacosdedatos]
patreon: tacosdedatos
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/es_pregunta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: ❓ Es pregunta
about: Pregunta sobre este proyecto 🎓
title: ''
labels: "es pregunta"
assignees:
---

## Lista

<!-- Marque con una `x` todas las casillas de verificación que correspondan (así `[x]`) -->

- [ ] Ya revise los [`issues`](https://github.com/tacosdedatos/tacosdedatos-utils/issues?q=is%3Aissue) del proyecto.

## ❓Pregunta

<!-- Cual es tu pregunta -->

¿Cómo puedo [...]?

¿Es posible hacer [...]?

## 📎 Contexto adicional

<!-- Agregue cualquier otro contexto o capturas de pantalla sobre la solicitud de función aquí. -->
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/reporta_un_bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: 🐛 Reporta un bug
about: Algo no esta funcionando 🔧
title: ''
labels: bug
assignees:
---

## 🐛 Reporta un bug

<!-- Una descripción clara y concisa de lo que es el error. -->

## 🔬 Como reproducirlo

Pasos para reproducir el comportamiento:

1. ...

### Código

<!-- Si ayuda, una muestra del código para reproducir el error (lo más mínima posible plis) -->

### Entorno

* Sistema Operativo: [e.g. Linux / Windows / macOS]
* Versión de python, (la puedes obtener ejecutando el siguiente código desde tu terminal):

```bash
python --version
```

### Capturas de pantalla

<!-- Si ayuda, agrega capturas de pantalla mostrando el error. -->

## 📈 Comportamiento esperado

<!-- Una descripción clara y concisa de lo que esperaba que sucediera. -->

## 📎 Contexto adicional

<!-- Agregue cualquier otro contexto sobre el problema aquí. -->
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/solicitud_de_funcion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 🚀 Solicitud de función
about: Sugiere una idea para este proyecto 🏖
title: ''
labels: propuesta
assignees:
---

## 🚀 Solicitud de función

<!-- Una descripción clara y concisa de la propuesta.-->

## 🔈 Motivación

<!-- Describa la motivación de esta propuesta. -->

## 🛰 Alternativas

<!-- Una descripción clara y concisa de cualquier solución o característica alternativa que haya considerado. -->

## 📎 Contexto adicional

<!-- Agregue cualquier otro contexto o capturas de pantalla sobre la solicitud de función aquí. -->
55 changes: 55 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Publish package to PyPI

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["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 poetry
run: make download-poetry

- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
source "$HOME/.poetry/env"
poetry config virtualenvs.in-project true
poetry install
- name: Run safety checks
run: |
source "$HOME/.poetry/env"
STRICT=1 make check-safety
- name: Run style checks
run: |
source "$HOME/.poetry/env"
STRICT=1 make check-style
- name: Run tests
run: |
source "$HOME/.poetry/env"
make test
- name: Publish to PyPI
run: |
make download-poetry
source "$HOME/.poetry/env"
poetry config virtualenvs.in-project true
poetry publish --build --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}

0 comments on commit a4aa023

Please sign in to comment.