Skip to content

Merge pull request #6 from HEP-SoC/field_node_methods #33

Merge pull request #6 from HEP-SoC/field_node_methods

Merge pull request #6 from HEP-SoC/field_node_methods #33

Workflow file for this run

name: build
on:
push:
branches:
- master
tags:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install -U pylint
- name: Install
run: |
python -m pip install .
# Add your linting step here if needed
build_sdist:
needs:
- lint
name: Build source distribution
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build sdist
run: python setup.py sdist
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*.tar.gz
deploy:
needs:
- build_sdist
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download build artifact
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPY_TOKEN }}