Skip to content

Commit

Permalink
test c# and python on container
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Sep 20, 2024
1 parent 3305765 commit 109a293
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
strategy:
fail-fast: false
matrix:
dotnet: ${{ fromJson(needs.get-containers.outputs.version-matrix-output) }}
# dotnet: ${{ fromJson(needs.get-containers.outputs.version-matrix-output) }}
engine: ${{ fromJson(needs.get-containers.outputs.engine-matrix-output) }}
host: ${{ fromJson(needs.get-containers.outputs.host-matrix-output) }}
container:
Expand All @@ -163,8 +163,8 @@ jobs:

- name: Set up dotnet ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
# with:
# dotnet-version: ${{ matrix.dotnet }}

- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
Expand All @@ -176,7 +176,8 @@ jobs:

- name: Test dotnet ${{ matrix.dotnet }}
working-directory: csharp
run: dotnet test --framework net${{ matrix.dotnet }} "-l:html;LogFileName=TestReport.html" --results-directory . -warnaserror
# run: dotnet test --framework net${{ matrix.dotnet }} "-l:html;LogFileName=TestReport.html" --results-directory . -warnaserror
run: dotnet test "-l:html;LogFileName=TestReport.html" --results-directory . -warnaserror

- name: Upload test reports
if: always()
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,30 +259,36 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ${{ fromJson(needs.get-containers.outputs.version-matrix-output) }}
# python: ${{ fromJson(needs.get-containers.outputs.version-matrix-output) }}
engine: ${{ fromJson(needs.get-containers.outputs.engine-matrix-output) }}
host: ${{ fromJson(needs.get-containers.outputs.host-matrix-output) }}
container:
image: ${{ matrix.host.IMAGE }}
options: ${{ join(' -q ', matrix.host.CONTAINER_OPTIONS) }} # adding `-q` to bypass empty options
steps:
- name: Install git and pip
- name: Install git
run: |
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
yum update
yum install -y git tar python3
python3 -m ensurepip --upgrade
python3 -m pip install --upgrade pip
python3 -m pip install mypy-protobuf virtualenv
yum update glibc
# python3 -m ensurepip --upgrade
# python3 -m pip install --upgrade pip
# python3 -m pip install mypy-protobuf virtualenv
# package-cleanup --cleandupes
# rpm --rebuilddb
# yum clean all
# yum update
# yum update glibc
# yum reinstall glibc

- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python }}

- name: Build Python wrapper
uses: ./.github/workflows/build-python-wrapper
Expand Down

0 comments on commit 109a293

Please sign in to comment.