Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #19

Merged
merged 5 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'

# ADJUST THIS: install all dependencies (including pdoc)
# ADJUST THIS: install all dependencies
- run: pip install torch
- run: pip install -e .
- run: python setup.py install
- run: pip install sphinx sphinx_rtd_theme
# ADJUST THIS: build your documentation into docs/.
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Continuous Integration
on: [push]
jobs:
build:
buildandtest:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest] #, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -14,13 +14,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
# architecture: x64
- name: Install pytorch
run: pip install torch torchvision torchaudio
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install torchTT
run: pip install .
- name: Install pytorch
run: pip install torch torchvision torchaudio
- name: Show installed
run: pip list
- name: Install torchtt
run: python setup.py install
- name: Run Test
run: python -m pytest tests/
Loading