Skip to content

Update API and prepare v0.11.0 #285

Update API and prepare v0.11.0

Update API and prepare v0.11.0 #285

Workflow file for this run

---
name: "Test"
on:
push:
branches:
- "main"
pull_request:
branches: ["*"]
jobs:
pytest:
name: "Unit and Integration Tests"
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Setup Python Environment"
run: "pip install -U pip virtualenv"
- name: "Install Dependencies"
run: |
virtualenv ~/.cache/virtualenv/authzedpy
source ~/.cache/virtualenv/authzedpy/bin/activate
pip install poetry
poetry env info
poetry install
- uses: "authzed/action-spicedb@v1"
with:
version: "latest"
- name: "Pytest"
run: |
source ~/.cache/virtualenv/authzedpy/bin/activate
pytest -vv .
protobuf:
name: "Generate & Diff Protobuf"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.10"
- name: "Setup Python Environment"
run: "pip install -U pip virtualenv"
- name: "Install Homebrew & gRPC"
run: |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/runner/.bash_profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
brew install grpc
ls /home/linuxbrew/.linuxbrew/bin
- name: "Install Python Dependencies"
run: |
virtualenv ~/.cache/virtualenv/authzedpy
source ~/.cache/virtualenv/authzedpy/bin/activate
pip install poetry
poetry env info
poetry install
echo "/home/runner/.cache/virtualenv/authzedpy/bin" >> $GITHUB_PATH
python -V
whereis grpc_python_plugin
whereis protoc-gen-mypy
whereis protoc-gen-mypy_grpc
echo $GITHUB_PATH
- uses: "authzed/actions/buf-generate@main"
with:
version: "1.15.1"