Skip to content

Commit

Permalink
Run unit tests in gha (facebookresearch#24)
Browse files Browse the repository at this point in the history
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
ankitade authored and facebook-github-bot committed Apr 19, 2022
1 parent 06e557b commit 7cfef46
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/unit_test.yaml
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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
packaging
iopath

0 comments on commit 7cfef46

Please sign in to comment.