Skip to content

Run group update in contributor and prod project. (#2131) #1151

Run group update in contributor and prod project. (#2131)

Run group update in contributor and prod project. (#2131) #1151

Workflow file for this run

---
name: release
on:
push:
branches: [master]
jobs:
test_full_build_and_release:
runs-on: windows-latest
environment: CD
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
extras: '-E all'
- name: Test full
env:
LOGIN_FLOW: client_credentials
COGNITE_CLIENT_SECRET: ${{ secrets.IDP_CLIENT_SECRET_CD }}
COGNITE_TOKEN_URL: https://login.microsoftonline.com/cognitepysdk.onmicrosoft.com/oauth2/v2.0/token
COGNITE_TOKEN_SCOPES: ${{ vars.CDF_BASE_URL_CD }}/.default
COGNITE_CLIENT_ID: ${{ vars.IDP_CLIENT_ID_CD }}
COGNITE_PROJECT: ${{ vars.CDF_PROJECT_CD }}
COGNITE_BASE_URL: ${{ vars.CDF_BASE_URL_CD }}
COGNITE_CLIENT_NAME: python-sdk-integration-tests
# Testpaths are defined in the pytest.ini file:
run: pytest --durations=10 --cov --cov-report term --cov-report xml:coverage.xml -n8 --dist loadscope --reruns 2 --maxfail 20
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
- name: Build package
run: poetry build
- name: Build docs
run: cd docs && make html
- name: Release to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --skip-existing --verbose dist/*
# TODO: Make this work again
# - name: Push code snippets to service-contracts
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: sh ./scripts/deploy_code_snippets.sh || echo 'PR failed. There is probably
# nothing to commit'