Skip to content

Increase DEFAULT_TIMEOUT and bump version to 0.2.1 #15

Increase DEFAULT_TIMEOUT and bump version to 0.2.1

Increase DEFAULT_TIMEOUT and bump version to 0.2.1 #15

Workflow file for this run

name: Continuous Integration
on:
push:
pull_request:
branches: [ master ]
release:
types: [ published ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '2.7', '3.6', '3.7', '3.8' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
pip install --upgrade pip setuptools coveralls
pip install -I -e .[tests]
- name: Run tests
run: |
pytest --cov=hepdata_cli
- name: Run coveralls
if: startsWith(matrix.python-version, '3.8')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: |
coveralls
deploy:
needs: test
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Build PyPI package
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}