Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add generic windows_job #887

Merged
merged 15 commits into from Oct 18, 2022
Merged

Conversation

seemethere
Copy link
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

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
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
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
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
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.

None yet

4 participants