Handle ColumnSchema target
in serialization of SequenceTransform
#661
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: gpu-multi | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-changes-tf: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install GitPython | |
pip install . --no-deps | |
- name: Get changed backends | |
id: backend_check | |
run: | | |
echo "changed=$(python ci/get_changed_backends.py --backend tensorflow --branch ${{github.base_ref}})" >> "$GITHUB_OUTPUT" | |
outputs: | |
needs_testing: ${{ steps.backend_check.outputs.changed }} | |
tensorflow: | |
needs: check-changes-tf | |
if: ${{needs.check-changes-tf.outputs.needs_testing == 'true' || github.ref == 'refs/heads/main'}} | |
runs-on: 2GPU | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run tests | |
run: | | |
ref_type=${{ github.ref_type }} | |
branch=main | |
if [[ $ref_type == "tag"* ]] | |
then | |
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/release*:refs/remotes/origin/release* | |
branch=$(git branch -r --contains ${{ github.ref_name }} --list '*release*' --format "%(refname:short)" | sed -e 's/^origin\///') | |
fi | |
if [[ "${{ github.ref }}" != 'refs/heads/main' ]]; then | |
extra_pytest_markers="and changed" | |
fi | |
cd ${{ github.workspace }}; PYTEST_MARKERS="multigpu $extra_pytest_markers" MERLIN_BRANCH=$branch COMPARE_BRANCH=${{ github.base_ref }} tox -e gpu,horovod-gpu | |
check-changes-torch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install GitPython | |
pip install . --no-deps | |
- name: Get changed backends | |
id: backend_check | |
run: | | |
echo "changed=$(python ci/get_changed_backends.py --backend torch --branch ${{github.base_ref}})" >> "$GITHUB_OUTPUT" | |
outputs: | |
needs_testing: ${{ steps.backend_check.outputs.changed }} | |
torch: | |
needs: check-changes-torch | |
if: ${{needs.check-changes-torch.outputs.needs_testing == 'true' || github.ref == 'refs/heads/main'}} | |
runs-on: 2GPU | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run tests | |
run: | | |
ref_type=${{ github.ref_type }} | |
branch=main | |
if [[ $ref_type == "tag"* ]] | |
then | |
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/release*:refs/remotes/origin/release* | |
branch=$(git branch -r --contains ${{ github.ref_name }} --list '*release*' --format "%(refname:short)" | sed -e 's/^origin\///') | |
fi | |
if [[ "${{ github.ref }}" != 'refs/heads/main' ]]; then | |
extra_pytest_markers="and changed" | |
fi | |
cd ${{ github.workspace }}; PYTEST_MARKERS="multigpu $extra_pytest_markers" MERLIN_BRANCH=$branch COMPARE_BRANCH=${{ github.base_ref }} tox -e gpu |