Skip to content

update dependencies #34

update dependencies

update dependencies #34

Workflow file for this run

name: Build and provide VFK Research MSB Websocket Client for Python Apps
on: [push, pull_request]
jobs:
build_1_5:
environment: MSB_1.5
runs-on: ubuntu-latest
env:
PYTHONWARNINGS: ignore:Unverified HTTPS request
TESTENV_BROKER_URL: ${{ secrets.TESTENV_BROKER_URL }}
TESTENV_SO_URL: ${{ secrets.TESTENV_SO_URL }}
TESTENV_FLOW_URL: ${{ secrets.TESTENV_FLOW_URL }}
strategy:
fail-fast: false
matrix:
python-version: [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 dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --ignore-pipfile --dev
- name: Run tests
run: |
pipenv run python setup.py install
TESTENV_BROKER_URL=$TESTENV_BROKER_URL TESTENV_SO_URL=$TESTENV_SO_URL TESTENV_FLOW_URL=$TESTENV_FLOW_URL pipenv run pytest -s --cov=msb_client
build_1_6:
environment: MSB_1.6
runs-on: ubuntu-latest
env:
PYTHONWARNINGS: ignore:Unverified HTTPS request
API_USERNAME: ${{ secrets.API_USERNAME }}
API_PASSWORD: ${{ secrets.API_PASSWORD }}
TESTENV_BROKER_URL: ${{ secrets.TESTENV_BROKER_URL }}
TESTENV_SO_URL: ${{ secrets.TESTENV_SO_URL }}
TESTENV_FLOW_URL: ${{ secrets.TESTENV_FLOW_URL }}
strategy:
fail-fast: false
matrix:
python-version: [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 dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --ignore-pipfile --dev
- name: Run tests
run: |
pipenv run python setup.py install
API_USERNAME=$API_USERNAME API_PASSWORD=$API_PASSWORD \
TESTENV_BROKER_URL=$TESTENV_BROKER_URL TESTENV_SO_URL=$TESTENV_SO_URL TESTENV_FLOW_URL=$TESTENV_FLOW_URL \
pipenv run pytest -s --cov=msb_client
pipenv run python setup.py sdist bdist_wheel
- name: Remove .egg files
run: |
rm dist/*.egg || true
- name: Coveralls
uses: coverallsapp/github-action@v2
- name: Deploy to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}