Build #325
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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install broker | |
run: | | |
docker pull opendxl/opendxl-broker | |
docker run -d -p 8883:8883 -p 8443:8443 -p 443:443 opendxl/opendxl-broker | |
docker ps -a | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade pipenv | |
pip install wheel | |
pip install .[test] | |
pip install setuptools==56.0.0 | |
python setup.py install | |
- name: Execute CI | |
run: | | |
python -m dxlclient provisionconfig sample 127.0.0.1 client -u admin -p password | |
cat sample/dxlclient.config | |
python setup.py ci |