fix(client): make sure evaluation log flushed to storage #8308
Workflow file for this 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
name: Python Client/SDK | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
filter: | |
runs-on: ubuntu-latest | |
outputs: | |
client: ${{ steps.filter.outputs.client }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check for python files changed | |
uses: getsentry/paths-filter@v2 | |
id: filter | |
with: | |
base: main | |
filters: .github/file-filter.yml | |
e2e: | |
strategy: | |
matrix: | |
python-version: | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
os: | |
- ubuntu-latest | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
exclude: | |
# https://github.com/pytorch/pytorch/issues/86566 | |
# pytorch does not release python 3.11 wheel package for macosx os yet. | |
- os: macos-latest | |
python-version: "3.11" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
needs: | |
- filter | |
if: ${{ (github.event_name == 'pull_request' && needs.filter.outputs.client == 'true') || github.event_name == 'push' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{matrix.python-version}} | |
architecture: "x64" | |
- name: Get pip cache | |
id: pip-cache-path | |
run: echo "::set-output name=dir::$(pip cache dir)" | |
- name: Cache pip dependencies | |
uses: actions/cache@v3 | |
id: pip-cache | |
with: | |
path: ${{ steps.pip-cache-path.outputs.dir }} | |
key: ${{ runner.os }}-e2e-${{ hashFiles('client/requirements-dev.txt')}}-${{ hashFiles('example/mnist/requirements.txt')}} | |
- name: Run end to end test | |
working-directory: . | |
env: | |
GITHUB_ACTION: 1 | |
PYTHON_VERSION: ${{matrix.python-version}} | |
SKIP_UI_BUILD: 1 | |
run: bash scripts/client_test/cli_test.sh sdk simple |