Skip to content

Fix encoding issues for utf-16 (#3) #33

Fix encoding issues for utf-16 (#3)

Fix encoding issues for utf-16 (#3) #33

Workflow file for this run

name: CI
on: push
jobs:
test:
name: Test with Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install poetry
run: pip install poetry
- name: Set up virtualenv
run: make install
- name: Run tests
run: make test
- name: Build distributable package
run: make build
release:
name: Publish the package
needs: test
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-20.04
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout code
uses: actions/checkout@v2
- name: Install poetry
run: pip install poetry
- name: Install from source
run: make install
- name: Publish package to pypi
run: poetry publish --build -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }}