add estimate dynamic ductility #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: xgb-rhomut | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout Repository | |
uses: actions/checkout@v2 | |
- name: install python version 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: update pip | |
run: python -m pip install --upgrade pip | |
- name: install dependencies | |
run: | | |
pip install . | |
pip install -e .[dev] | |
- name: run tests | |
run: pytest | |
- name: lint code | |
run: flake8 | |
publish: | |
name: Publish to PyPi | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: install twine setuptools wheel | |
run: python -m pip install --upgrade twine setuptools wheel | |
- name: publish to PyPI | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload --skip-existing dist/* | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} |