Skip to content

Update dependency cognite-extractor-utils to v7 #65

Update dependency cognite-extractor-utils to v7

Update dependency cognite-extractor-utils to v7 #65

name: test_and_build
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry lock
poetry install
- name: Check codestyle
run: pre-commit run --all
- name: Start Mosquitto
uses: namoshek/mosquitto-github-action@v1
with:
version: '1.6'
ports: '1883:1883'
- name: Run tests
env:
COGNITE_PROJECT: opcua-interface-test
COGNITE_BASE_URL: "https://greenfield.cognitedata.com"
COGNITE_CLIENT_ID: ${{ secrets.COGNITE_CLIENT_ID }}
COGNITE_TOKEN_URL: ${{ secrets.COGNITE_TOKEN_URL }}
COGNITE_CLIENT_SECRET: ${{ secrets.COGNITE_CLIENT_SECRET }}
MQTT_HOST: localhost
run: bash run_tests.sh
- name: Build package
run: poetry build