Skip to content

beam auth in action

beam auth in action #3

Workflow file for this run

name: Tests
on: [push, pull_request, workflow_dispatch]
jobs:
light-test:
runs-on: ubuntu-latest
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
beam configure ghact --token $BEAM_AUTH_TOKEN
beam config select ghact
- name: run tests
run: |
source .venv/bin/activate
pytest tests/light_test.py