Skip to content

remove + from return in example #24

remove + from return in example

remove + from return in example #24

Workflow file for this run

name: Tests
on: [pull_request, workflow_dispatch]
jobs:
light-test:
runs-on: ubuntu-latest
env:
BEAM_AUTH_TOKEN: ${{ secrets.BEAM_AUTH_TOKEN }}
BEAM_WORKSPACE_ID: ${{ secrets.BEAM_WORKSPACE_ID }}
steps:
- uses: actions/checkout@v3
- name: set up python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: install poetry
uses: snok/install-poetry@v1
with:
version: '1.5.1'
virtualenvs-create: true
virtualenvs-in-project: true
- name: load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: configure beam
run: |
source .venv/bin/activate
mkdir -p ~/.beam
cat << EOF > ~/.beam/config.ini
[default]
token = ${{ secrets.BEAM_AUTH_TOKEN }}
gateway_host = gateway.beam.cloud
gateway_port = 443
EOF
- name: run tests
run: |
source .venv/bin/activate
pytest tests/light_test.py