Skip to content

Commit f8e5daf

Browse files
committed
Merge branch 'latest' of github.com:glasnt/emojificate into latest
2 parents c55d3cb + 013a44d commit f8e5daf

File tree

4 files changed

+70
-13
lines changed

4 files changed

+70
-13
lines changed

.github/workflows/pytest.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: pytest
5+
6+
on:
7+
push:
8+
branches: [ latest ]
9+
pull_request:
10+
branches: [ latest ]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version:
19+
- "3.5"
20+
- "3.6"
21+
- "3.7"
22+
- "3.8"
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v2
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install -r tests/requirements.txt
34+
pip install -e .
35+
- name: Test with pytest
36+
run: |
37+
pytest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

.travis.yml

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

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
emojificate
22
===========
33

4-
.. image:: https://travis-ci.org/glasnt/emojificate.svg?branch=master
5-
:target: https://travis-ci.org/glasnt/emojificate
4+
.. image:: https://github.com/glasnt/emojificate/workflows/pytest/badge.svg
5+
:target: https://github.com/glasnt/emojificate/actions?query=workflow%3Apytest
66

77
Emojificate is a Python implementation of a concept of using fallback images, alt text, title text and aria labels to represent emoji in HTML code in a more accessible method.
88

0 commit comments

Comments
 (0)