Skip to content

Commit

Permalink
Merge pull request #3 from SED/develop
Browse files Browse the repository at this point in the history
Release v1.5.7
  • Loading branch information
Alex Van Brunt authored and GitHub Enterprise committed Nov 15, 2024
2 parents f8eb4a5 + 44da28c commit a0ee878
Show file tree
Hide file tree
Showing 46 changed files with 1,961 additions and 2,222 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[run]
source = src/cbc_sdk
relative_files = True
branch = True

[report]
exclude_lines =
pragma: no cover
Expand Down
226 changes: 226 additions & 0 deletions .github/workflows/verify-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
name: verify-python
on:
push:
branches:
- develop
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
lint:
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.8"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: ./bin/linters.sh

python37:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.7"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: pytest

python38:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.8"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: pytest

python39:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.9"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: pytest

python310:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.10"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: pytest

python311:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.11"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: pytest

python312:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/python:3.12"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: pip3 install -r requirements.txt
- run: pytest

amazonlinux:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/amazonlinux:latest"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- run: yum -y install tar xz gzip
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: |
yum -y install python3-devel python3-pip
pip3 install setuptools
pip3 install -r requirements.txt
pip3 install .
- run: pytest

rhel:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/redhat/ubi8:latest"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: |
dnf install -y redhat-rpm-config gcc libffi-devel python38-devel openssl-devel
pip3 install --upgrade pip
pip3 install .[test]
- run: pytest

suse:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/opensuse/tumbleweed"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- run: zypper --non-interactive install tar xz gzip
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: |
zypper --non-interactive install python3-devel python3-pip gcc
python3 -m venv env
source env/bin/activate
env/bin/pip3 install -r requirements.txt
env/bin/pip3 install .
- run: env/bin/python3 -m pytest

ubuntu:
needs: lint
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/ubuntu:20.04"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
timeout-minutes: 120
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 20
- run: |
apt-get update
apt-get install -y python3 python3-pip
pip3 install -r requirements.txt
pip3 install .
- run: pytest

sonarqube:
needs: ubuntu
runs-on: cbre
container:
image: "${{ vars.BDCM_DOCKER_GATEWAY }}/ubuntu:20.04"
credentials:
username: ${{ vars.CB_ARTIFACTORY_DOCKER_USER }}
password: ${{ secrets.CB_ARTIFACTORY_DOCKER_TOKEN }}
steps:
- uses: actions-brcm/checkout@v4.1.0
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- run: |
apt-get update
apt-get install -y python3 python3-pip
pip3 install -r requirements.txt
pip3 install .
- run: ./bin/tests_n_reports.sh
- uses: actions-brcm/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<br>
**Release Date:** July 26, 2024

[![Coverage Status](https://coveralls.io/repos/github/carbonblack/carbon-black-cloud-sdk-python/badge.svg?t=Id6Baf)](https://coveralls.io/github/carbonblack/carbon-black-cloud-sdk-python)
[![Codeship Status for carbonblack/carbon-black-cloud-sdk-python](https://app.codeship.com/projects/9e55a370-a772-0138-aae4-129773225755/status?branch=develop)](https://app.codeship.com/projects/402767)



## Recent updates

Expand Down Expand Up @@ -60,7 +56,6 @@ If developing the SDK, you also need:
- pytest==5.4.2
- pymox==1.0.0
- coverage==5.1
- coveralls==2.0.0
- flake8==3.8.1
- flake8-colors==0.1.6
- flake8-docstrings==1.5.0
Expand Down
8 changes: 0 additions & 8 deletions bin/tests_n_reports.bat

This file was deleted.

5 changes: 2 additions & 3 deletions bin/tests_n_reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ set -e
echo 'Running tests....'
coverage run -m pytest

echo 'Running report and sending to coveralls....'
coverage report -m
coveralls
echo 'Generating report....'
coverage xml
41 changes: 0 additions & 41 deletions codeship-services.yml

This file was deleted.

37 changes: 0 additions & 37 deletions codeship-steps.yml

This file was deleted.

11 changes: 0 additions & 11 deletions docker/amazon/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions docker/python3.10/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions docker/python3.11/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions docker/python3.12/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions docker/python3.7/Dockerfile

This file was deleted.

Loading

0 comments on commit a0ee878

Please sign in to comment.