Skip to content

Commit

Permalink
Added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchenyang committed Jan 11, 2024
1 parent a2eccf5 commit 76752f1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.10", "3.11",]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip
run: |
python -m pip install --upgrade pip
- name: Install package and test dependencies
run: |
pip install -e .[test]
- name: Test with pytest
run: |
python -m pytest
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ of data, without labels. To remove labels from existing datasets, extract the
data with the provided `MappedDataset` wrapper before constructing a
`DataLoader`.

Two toy datasets, `Swissroll` and
[`DatasaurusDozen`](https://www.research.autodesk.com/publications/same-stats-different-graphs/),
are provided.

### Model
All model objects should be a subclass of `torch.nn.Module`. Models should have:
- A parameter `input_dims`, a tuple containing the dimensions of the input to
Expand Down

0 comments on commit 76752f1

Please sign in to comment.