functionalTest #1128
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: functionalTest | |
on: | |
push: | |
branches: [ bfabric12 ] | |
schedule: | |
- cron: "00 08 * * *" | |
pull_request: | |
branches: [ bfabric12 ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- shell: bash | |
name: Create .bfabricrc.py configuration file | |
env: | |
WEBBASE: ${{ secrets.BFABRICWEBBASE }} | |
LOGIN: ${{ secrets.BFABRICLOGIN }} | |
PASSWD: ${{ secrets.BFABRICPASSWD }} | |
run: | | |
echo "_WEBBASE=\""$WEBBASE\" > ~/.bfabricrc.py | |
echo "_LOGIN=\""$LOGIN\" >> ~/.bfabricrc.py | |
echo "_PASSWD=\""$PASSWD\" >> ~/.bfabricrc.py | |
- name: Install bfabricPy and dependencies | |
run: | | |
sudo mkdir -p /home/bfabric/prx/ \ | |
&& python -m pip install --upgrade pip \ | |
&& python setup.py sdist \ | |
&& pip install dist/bfabric-*.tar.gz \ | |
- name: Test with unittest | |
run: | | |
cd ./bfabric/tests/ \ | |
&& python -m unittest test_bfabric_functional.py \ | |
&& python -m unittest test_bfabric_read.py |