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

Updated CI dep #6

Merged
merged 5 commits into from
Apr 1, 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
22 changes: 11 additions & 11 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
build-test-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update && sudo apt-get install -y wget unzip cmake libgtest-dev clang-format
- name: Fetch libtorch
- name: Fetch libtorch # TODO: using a older version since 2.2.2 had some changes to how caffe2::mkl was included. Need to fix
run: wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip && unzip libtorch-cxx11-abi-shared-with-deps-2.1.2+cpu.zip
- name: Run format checking
run: bash scripts/run_format.sh -c
Expand All @@ -24,9 +24,9 @@ jobs:
linting-code-coverage-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install test dependencies
Expand All @@ -46,7 +46,7 @@ jobs:
mypy .
- name: Install pytorch
run: |
python -m pip install torch==2.1.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install torch==2.2.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Code coverage
run: |
python -m pip install --no-build-isolation -e .
Expand All @@ -60,11 +60,11 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-latest]
pytorch-version: ['1.13.1', '2.1.2']
pytorch-version: ['1.13.1', '2.2.2']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pytorch
Expand All @@ -84,17 +84,17 @@ jobs:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install -r requirements-dev.txt
- name: Install pytorch
run: |
python -m pip install torch==2.1.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install torch==2.2.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install package
run: |
python -m pip install --no-build-isolation .
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ black==23.12.1
flake8==7.0.0
isort==5.13.2
mypy==1.8.0
numpy<2.0
pre-commit==3.6.0
pytest==7.4.4
pytest-cov==4.1.0
Expand Down
Loading