Skip to content

Commit b3274a1

Browse files
authored
Merge pull request #54 from hirosassa/poetrize-gh-actions
Introduce poetry and github actions
2 parents 44a7426 + 1809c26 commit b3274a1

File tree

9 files changed

+2160
-52
lines changed

9 files changed

+2160
-52
lines changed

.github/workflows/format.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: YAPF Formatting Check
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
formatting-check:
11+
12+
name: Formatting Check
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: run YAPF to test if python code is correctly formatted
18+
uses: AlexanderMelde/yapf-action@master
19+
with:
20+
args: --verbose --style=yapf.ini

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags: '*'
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies and build
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install poetry poetry-dynamic-versioning twine
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: __token__
25+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
26+
run: |
27+
poetry publish --build --username $TWINE_USERNAME --password $TWINE_PASSWORD

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ${{ matrix.platform }}
13+
strategy:
14+
matrix:
15+
platform: [ubuntu-latest]
16+
python-version: [3.7]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install tox tox-gh-actions poetry
28+
- name: Test with tox
29+
run: tox

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# redshells
22

3-
[![Build Status](https://travis-ci.org/m3dev/redshells.svg)](https://travis-ci.org/m3dev/redshells)
3+
[![Test](https://github.com/m3dev/redshells/actions/workflows/test.yml/badge.svg)](https://github.com/m3dev/redshells/actions/workflows/test.yml)
4+
[![Python Versions](https://img.shields.io/pypi/pyversions/redshells.svg)](https://pypi.org/project/redshells/)
5+
[![](https://img.shields.io/pypi/v/redshells)](https://pypi.org/project/redshells/)
6+
![](https://img.shields.io/pypi/l/redshells)
47

58
Machine learning tasks which are used with data pipeline library "luigi" and its wrapper "gokart".

0 commit comments

Comments
 (0)