-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.34 KB
/
run_functional_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- 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