Skip to content

Update baseimage as for tagging strategy (v0.1) #290

Update baseimage as for tagging strategy (v0.1)

Update baseimage as for tagging strategy (v0.1) #290

Workflow file for this run

# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: CI workflow
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
# Run only on branches/commits and not tags
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
name: Run Linters, Unit Tests and sdist
strategy:
max-parallel: 3
matrix:
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements-links.txt
python3 -m pip install tox-gh-actions
- name: Run Linters
uses: ./.github/actions/pre-commit-action
- name: Run the daparized databroker binary
run: |
./.vscode/scripts/ensure-dapr.sh DAPR --task
./.vscode/scripts/run-mosquitto.sh --task &
./.vscode/scripts/run-vehicledatabroker.sh DAPR --task &
sleep 10s
- name: Run unit and integration tests
run: tox
- name: Test setup.cfg execution
run: |
python3 setup.py sdist
ls