Skip to content

Add ability to filter on external ID for nodes even when no other fil… #302

Add ability to filter on external ID for nodes even when no other fil…

Add ability to filter on external ID for nodes even when no other fil… #302

Workflow file for this run

---
name: release
on:
push:
branches: [main]
env:
PYTHON_VERSION: '3.10'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
# Necessary for running the mypy pre-commit hook
poetry install -E all
- uses: pre-commit/[email protected]
release:
runs-on: ubuntu-latest
environment: CD
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install -E all
- name: Test
run: pytest cognite tests/test_unit
- uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
- name: Build package
run: poetry build
- name: Release to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --skip-existing --verbose dist/*