-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dependabot/nuget/RabbitMQ.Client-7.0.0' of https://gith…
…ub.com/SMI/SmiServices into dependabot/nuget/RabbitMQ.Client-7.0.0
- Loading branch information
Showing
134 changed files
with
862 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
schedule: | ||
- cron: "0 5 * * *" | ||
|
||
env: | ||
python-version: "3.10" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
|
@@ -23,6 +26,9 @@ jobs: | |
matrix: | ||
language: ["csharp", "java", "python"] | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.python-version }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Initialize CodeQL | ||
|
@@ -32,13 +38,17 @@ jobs: | |
- name: Build Python | ||
if: ${{ matrix.language == 'python' }} | ||
uses: github/codeql-action/autobuild@v3 | ||
- name: setup .NET | ||
if: ${{ matrix.language == 'csharp' }} | ||
# NOTE(rkm 2022-02-20) Uses global.json | ||
uses: actions/[email protected] | ||
- name: Build .Net | ||
if: ${{ matrix.language == 'csharp' }} | ||
run: ./bin/smi/build.py -c Release | ||
run: ./bin/smi/smi_build.py -c Release | ||
- name: Build java | ||
if: ${{ matrix.language == 'java' }} | ||
# NOTE(rkm 2023-03-21) Ensure test code is detected but don't actually run anything | ||
run: ./bin/ctp/test.py --install-libs -DskipTests | ||
run: ./bin/ctp/ctp_test.py --install-libs -DskipTests | ||
- name: SecurityCodescan | ||
if: ${{ matrix.language == 'csharp' }} | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,15 +22,18 @@ env: | |
java-version: 11 | ||
java-distribution: temurin | ||
# python | ||
python-version: 3.6 | ||
python-version: "3.10" | ||
|
||
jobs: | ||
init: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.matrix }} | ||
build_ref: ${{ steps.build_ref.outputs.build_ref }} | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.python-version }} | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: set matrix | ||
|
@@ -59,16 +62,19 @@ jobs: | |
- name: "[linux] enable disk caching" | ||
if: ${{ matrix.os == 'linux' }} | ||
run: sudo apt-get install -y libeatmydata1 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.python-version }} | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: setup .NET | ||
# NOTE(rkm 2022-02-20) Uses global.json | ||
uses: actions/[email protected] | ||
- name: download tessdata | ||
run: ./bin/smi/downloadTessdata.py | ||
run: ./bin/smi/download_tessdata.py | ||
- name: "[linux] start services" | ||
if: ${{ matrix.os == 'linux' }} | ||
run: ./bin/smi/startDockerLinux.py ${{ env.db-password }} | ||
run: ./bin/smi/smi_start_docker_linux.py ${{ env.db-password }} | ||
- name: "[linux] re-write database strings" | ||
if: ${{ matrix.os == 'linux' }} | ||
run: | | ||
|
@@ -96,12 +102,12 @@ jobs: | |
set -euxo pipefail | ||
cov="" | ||
[ "${{ matrix.os }}" == "windows" ] && cov="--no-coverage" | ||
./bin/smi/buildTestPackage.py \ | ||
./bin/smi/smi_build_test_package.py \ | ||
${{ needs.init.outputs.build_ref }} \ | ||
"$cov" | ||
- name: upload coverage to codecov | ||
if: ${{ matrix.os == 'linux' }} | ||
uses: codecov/[email protected].4 | ||
uses: codecov/[email protected].7 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
directory: coverage/ | ||
|
@@ -126,6 +132,9 @@ jobs: | |
matrix: ${{ fromJson(needs.init.outputs.matrix) }} | ||
runs-on: ${{ matrix.image }} | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.python-version }} | ||
- name: "[linux] enable disk caching" | ||
if: ${{ matrix.os == 'linux' }} | ||
run: sudo apt-get install -y libeatmydata1 | ||
|
@@ -139,12 +148,12 @@ jobs: | |
cache: maven | ||
- name: "[linux] start services" | ||
if: ${{ matrix.os == 'linux' }} | ||
run: ./bin/ctp/startDockerLinux.py | ||
run: ./bin/ctp/ctp_start_docker_linux.py | ||
- name: "[windows] skip integration tests" | ||
if: ${{ matrix.os == 'windows' }} | ||
run: echo "JAVA_TESTS=--skip-integration-tests" >> $GITHUB_ENV | ||
- name: build, test, and package ctp | ||
run: ./bin/ctp/buildTestPackage.py --install-libs ${{ needs.init.outputs.build_ref }} ${{ env.JAVA_TESTS }} | ||
run: ./bin/ctp/ctp_build_test_package.py --install-libs ${{ needs.init.outputs.build_ref }} ${{ env.JAVA_TESTS }} | ||
- name: "[linux] upload packages" | ||
if: ${{ matrix.os == 'linux' }} | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -155,7 +164,7 @@ jobs: | |
upload-to-release: | ||
if: contains(github.ref, 'refs/tags/v') | ||
needs: [init, smi, ctp] | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: "[linux] enable disk caching" | ||
run: sudo apt-get install -y libeatmydata1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[flake8] | ||
|
||
# https://github.com/psf/black | ||
max-line-length = 120 | ||
|
||
# Ignoring: | ||
# E203 - Whitespace before ':' | ||
extend-ignore = E203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[isort] | ||
profile = black | ||
force_single_line = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[mypy] | ||
check_untyped_defs = true | ||
disallow_any_generics = true | ||
disallow_incomplete_defs = true | ||
disallow_untyped_defs = true | ||
no_implicit_optional = true | ||
warn_redundant_casts = true | ||
warn_unused_ignores = true | ||
mypy_path = ./bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.