Skip to content

upgrade cognite-sdk #1501

upgrade cognite-sdk

upgrade cognite-sdk #1501

Workflow file for this run

name: test_and_build
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install
poetry install -E geopandas
- name: Check codestyle
run: |
pre-commit run --all-files
- name: Run tests
env:
COGNITE_CLIENT_SECRET: ${{ secrets.COGNITE_CLIENT_SECRET }}
COGNITE_TOKEN_URL: https://login.microsoftonline.com/dff7763f-e2f5-4ffd-9b8a-4ba4bafba5ea/oauth2/v2.0/token
COGNITE_TOKEN_SCOPES: https://greenfield.cognitedata.com/.default
COGNITE_CLIENT_ID: 6ad0e304-479f-4acc-bde6-f38b82312d8a
COGNITE_PROJECT: python-sdk-test
COGNITE_BASE_URL: https://greenfield.cognitedata.com
COGNITE_CLIENT_NAME: cognite-sdk-experimental-integration-tests
run: |
coverage run --source cognite.experimental -m pytest -v tests
coverage xml
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
- name: Build package
run: poetry build
- name: Build docs
run: cd docs && make html