Skip to content

Update Tensorflow, gRPC, Protobuf dependencies #913

Update Tensorflow, gRPC, Protobuf dependencies

Update Tensorflow, gRPC, Protobuf dependencies #913

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: TaskRunner (Python 3.9)
on:
pull_request:
branches: [ develop ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
python -m pip install --upgrade pip
pip install .
- name: Install dependencies windows
if: matrix.os == 'windows-latest'
run: |
python -m venv env
.\env\Scripts\activate
python -m pip install --upgrade pip
pip install .
- name: Test TaskRunner API windows
if: matrix.os == 'windows-latest'
run: |
.\env\Scripts\activate
python -m tests.github.test_hello_federation --template keras_cnn_mnist --fed_workspace aggregator --col1 col1 --col2 col2 --rounds-to-train 3
- name: Test TaskRunner API ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
python -m tests.github.test_hello_federation --template keras_cnn_mnist --fed_workspace aggregator --col1 col1 --col2 col2 --rounds-to-train 3