Skip to content

ci: Add generic windows_job#887

Merged
seemethere merged 15 commits intomainfrom
seemethere/generic_windows_job.yml
Oct 18, 2022
Merged

ci: Add generic windows_job#887
seemethere merged 15 commits intomainfrom
seemethere/generic_windows_job.yml

Conversation

@seemethere
Copy link
Copy Markdown
Member

@seemethere seemethere commented Oct 14, 2022

Adds a generic windows job that's similar to our generic linux job (#783)

Usage would be like:

name: Test build/test windows cpu

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  build-test:
    uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
    with:
      script: |
        pip install -r requirements.txt
        python setup.py develop
        pytest tests/

Signed-off-by: Eli Uriegas eliuriegas@meta.com

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
torchci ⬜️ Ignored (Inspect) Oct 18, 2022 at 5:01PM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 14, 2022
@seemethere seemethere marked this pull request as ready for review October 17, 2022 20:51
@seemethere seemethere requested a review from a team October 17, 2022 20:51
Adds a generic windows job that's similar to our generic linux job

Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
@seemethere seemethere force-pushed the seemethere/generic_windows_job.yml branch from fe85e2c to 06c29a2 Compare October 17, 2022 22:23
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
@seemethere seemethere added the Nova Tooling Tooling Related to Project Nova (CI Tooling) label Oct 18, 2022
test-infra-ref: ${{ github.ref }}
timeout: 60
script: |
conda create -y -n test python=3.8
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also include delete of conda environment at the end of the test ?

conda env remove -p test

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are ephemeral I'm not really too worried about it

conda activate test
python -m pip install --extra-index-url https://download.pytorch.org/whl/nightly/cpu --pre torch
# Can import pytorch
python -c 'import torch'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same think here, please include conda env remove

Copy link
Copy Markdown
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@seemethere seemethere merged commit 8897d6c into main Oct 18, 2022
@seemethere seemethere deleted the seemethere/generic_windows_job.yml branch October 18, 2022 20:33
kit1980 pushed a commit that referenced this pull request Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Nova Tooling Tooling Related to Project Nova (CI Tooling)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants