Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 0cdb4a1

Browse files
committed
Try to link to CI
1 parent 4ef06a9 commit 0cdb4a1

File tree

4 files changed

+33
-18
lines changed

4 files changed

+33
-18
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Set up Python
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.7
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip wheel
17+
pip install -e .
18+
- name: Run tests
19+
run: |
20+
python tests.py
21+
- name: Build a distribution
22+
run: |
23+
python setup.py sdist bdist_wheel
24+
- name: Publish a Python distribution to PyPI
25+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
26+
uses: pypa/gh-action-pypi-publish@master
27+
with:
28+
user: __token__
29+
password: ${{ secrets.pypi_password }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*.egg-info
22
__pycache__
33
.pytest_cache
4-
.vscode
4+
.vscode
5+
build
6+
dist

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# languagecodes
22

3-
[![Build Status](https://travis-ci.org/alephdata/languagecodes.png?branch=master)](https://travis-ci.org/alephdata/languagecodes)
3+
![package](https://github.com/alephdata/languagecodes/workflows/package/badge.svg)
44

55
This library helps to normalise the ISO 639 codes used to describe languages from
66
two-letter codes to three letters, and vice versa.

0 commit comments

Comments
 (0)