Skip to content

[PYG-225] 🤦‍♂️Type type (#303) #247

[PYG-225] 🤦‍♂️Type type (#303)

[PYG-225] 🤦‍♂️Type type (#303) #247

Workflow file for this run

---
name: release
on:
push:
branches: [main]
env:
PYTHON_VERSION: '3.9'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 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/action@v3.0.1
release:
runs-on: ubuntu-latest
environment: CD
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 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@v4
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/*