Use labels from arrows #13
Workflow file for this run
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
name: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
POETRY_HOME: "/opt/poetry" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: install poetry | |
run: | | |
python3 -m venv $POETRY_HOME | |
$POETRY_HOME/bin/pip install poetry==1.7.1 | |
$POETRY_HOME/bin/poetry --version | |
- name: add poetry to path | |
run: echo "${POETRY_HOME}/bin" >> $GITHUB_PATH | |
- name: install dependencies and build | |
run: poetry install | |
- name: run unit tests | |
run: poetry run pytest tests/unit | |
- uses: 'google-github-actions/auth@v2' | |
with: | |
project_id: ${{ vars.GCP_PROJECT }} | |
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} | |
- name: run integration tests | |
env: | |
gds_license: ${{ secrets.GDS_LICENSE }} | |
run: | | |
LICENSE_FILE=${{ runner.temp }}/license.tmp | |
echo "${gds_license}" > $LICENSE_FILE | |
GDS_LICENSE_FILE=$LICENSE_FILE poetry run pytest tests/integration | |
- name: build image | |
run: docker build . --platform linux/amd64 --file Dockerfile --tag neo4j-bigquery-connector:$(date +%s) |