forked from facebookresearch/multimodal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run unit tests in gha (facebookresearch#24)
Summary: As title Pull Request resolved: facebookresearch#24 Test Plan: successful run on this PR itself (https://github.com/facebookresearch/multimodal/runs/6016844312?check_suite_focus=true) Reviewed By: langong347 Differential Revision: D35633892 Pulled By: ankitade fbshipit-source-id: e6616d59622d6a870e693c655db38f1f2cbf2660
- Loading branch information
1 parent
06e557b
commit 7cfef46
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
name: unit test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
- name: Setup conda env | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
activate-environment: test | ||
python-version: "3.8" | ||
- name: Install dependencies | ||
shell: bash -l {0} | ||
run: | | ||
set -eux | ||
conda activate test | ||
conda install pytorch torchvision torchtext cpuonly -c pytorch-nightly | ||
pip install -e ".[dev]" | ||
- name: Run unit tests | ||
shell: bash -l {0} | ||
run: | | ||
set -eux | ||
conda activate test | ||
pytest test -vv |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
packaging | ||
iopath |