Skip to content

Add periodic and PLE scalers (#183) #525

Add periodic and PLE scalers (#183)

Add periodic and PLE scalers (#183) #525

Workflow file for this run

name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install MPI
run: sudo apt-get update && sudo apt-get install -y libopenmpi-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv sync --dev
pipenv install torch==1.12.1 --skip-lock
- name: Test with pytest
run: |
pipenv run coverage run
pipenv run coverage report
- name: Build a source tarball
if: startsWith(github.ref, 'refs/tags')
run: |
pipenv run python setup.py sdist
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}