Skip to content

add option to shorten cli commands #39

add option to shorten cli commands

add option to shorten cli commands #39

name: mara-app
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: Chechout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and test application
env:
pythonversion: ${{ matrix.python-version }}
run: |
python -c "import sys; print(sys.version)"
pip install .[test]
echo Finished successful build with Python $pythonversion
- name: Test with pytest
run: |
pytest -v tests
deploy:
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Chechout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install wheel and build the package
run: |
git clean -xfd
python -m pip install wheel
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}