Skip to content

Commit

Permalink
Setup GitHub CI (#4)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #4

Reviewed By: cbilgin

Differential Revision: D59165435

fbshipit-source-id: 1eabeb7456ffc399dcb30b96b1f7c0c9ee528f67
  • Loading branch information
manuelcandales authored and facebook-github-bot committed Jul 1, 2024
1 parent 2fa5e9b commit 221e7e7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
python -m unittest discover -s test -p "*.py"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
torch

0 comments on commit 221e7e7

Please sign in to comment.