Bump faker from 20.1.0 to 27.0.0 #219
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: test-bigquery | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v1 | |
- name: start bq emulator | |
run: | | |
docker run -d -p 9050:9050 -p 9060:9060 ghcr.io/goccy/bigquery-emulator:latest --project pydapper --dataset pydapper | |
- name: set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install poetry | |
env: | |
POETRY_VERSION: "1.7.1" | |
run: | | |
curl -sSL https://install.python-poetry.org | python - | |
poetry config virtualenvs.create false | |
- name: cache poetry.lock dependencies | |
id: cache-poetry-deps | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}-test-bigquery | |
- name: install dependencies | |
if: steps.cache-poetry-deps.outputs.cache-hit != 'true' | |
run: poetry install -E google-cloud-bigquery | |
- name: test and coverage | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
GOOGLE_PRIVATE_KEY: ${{ secrets.GOOGLE_PRIVATE_KEY }} | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
run: | | |
poetry run pytest -m "bigquery" --cov=. --cov-branch -v --durations=25 | |
poetry run coverage report -m | |
poetry run codecov -F ${{ matrix.python-version }}-bigquery |