Skip to content

Commit

Permalink
Merge pull request #19 from ion-g-ion/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
ion-g-ion authored Jan 25, 2024
2 parents e15fbe9 + 1617745 commit 4033557
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
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/

0 comments on commit 4033557

Please sign in to comment.