Skip to content

Commit 221e7e7

Browse files
manuelcandalesfacebook-github-bot
authored andcommitted
Setup GitHub CI (#4)
Summary: Pull Request resolved: #4 Reviewed By: cbilgin Differential Revision: D59165435 fbshipit-source-id: 1eabeb7456ffc399dcb30b96b1f7c0c9ee528f67
1 parent 2fa5e9b commit 221e7e7

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: "3.10"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
31+
- name: Run tests
32+
run: |
33+
python -m unittest discover -s test -p "*.py"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
torch

0 commit comments

Comments
 (0)