Skip to content

Adding support for comma selecting of elements when using cut for example -c -f 1,3 #125

Adding support for comma selecting of elements when using cut for example -c -f 1,3

Adding support for comma selecting of elements when using cut for example -c -f 1,3 #125

Workflow file for this run

name: Python application
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
tox
publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install publishing dependencies
if: github.ref == 'refs/heads/master'
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Install package dependencies
if: github.ref == 'refs/heads/master'
run: |
python -m pip install -r requirements.txt
- name: Build and publish
if: github.ref == 'refs/heads/master'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*