Update examples documentation #353
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 job runs the project tests | |
name: Build and test - master | |
# Trigger the workflow on push or pull request to master or develop | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
# This workflow contains a single job called "build" | |
build-and-test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Run tests on MASTER branch | |
if: ${{ github.base_ref == 'master' }} | |
env: | |
FBN_TOKEN_URL: ${{ secrets.FBN_TOKEN_URL }} | |
FBN_USERNAME: ${{ secrets.FBN_USERNAME }} | |
FBN_PASSWORD: ${{ secrets.FBN_PASSWORD }} | |
FBN_CLIENT_ID: ${{ secrets.FBN_CLIENT_ID }} | |
FBN_CLIENT_SECRET: ${{ secrets.FBN_CLIENT_SECRET }} | |
FBN_APP_NAME: ${{ secrets.FBN_APP_NAME }} | |
FBN_LUSID_API_URL: ${{ secrets.FBN_LUSID_API_URL }} | |
FBN_LUMI_API_URL: ${{ secrets.FBN_LUMI_API_URL }} | |
FBN_DRIVE_API_URL: ${{ secrets.FBN_DRIVE_API_URL }} | |
FBN_NOTIFICATIONS_API_URL: ${{ secrets.FBN_NOTIFICATIONS_API_URL }} | |
FBN_ACCESS_TOKEN: ${{ secrets.FBN_LUSID_ACCESS_TOKEN }} | |
PYTHONPATH: /home/runner/work/luminesce-examples/luminesce-examples | |
run: | | |
echo "env variables for MASTER have been set" | |
pip install dve-lumipy-preview --no-dependencies | |
pip install -r requirements.txt | |
echo "Running the tests..." | |
python runner/run.py | |