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

Migrate to GitHub Actions #1181

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ca3a593
Add workflow yml
vivekmig Sep 1, 2023
63f435a
Fix
vivekmig Sep 1, 2023
ccec8a1
Fix
vivekmig Sep 1, 2023
5f137f2
Adding tests
vivekmig Sep 4, 2023
9e477da
Gpu test
vivekmig Sep 4, 2023
15ce461
Install pip
vivekmig Sep 4, 2023
3885592
Npm install
vivekmig Sep 4, 2023
87cdbf6
test conda
vivekmig Sep 4, 2023
7c3c705
Remove env vars
vivekmig Sep 4, 2023
661cd1b
Test alternatives
vivekmig Sep 4, 2023
092bcbf
Fix
vivekmig Sep 13, 2023
9d5abce
Revert pip script change
vivekmig Sep 13, 2023
8c8e859
Add sudo
vivekmig Sep 13, 2023
36783c8
Remove
vivekmig Sep 13, 2023
eee6031
Test permissions
vivekmig Sep 13, 2023
15e6d75
Remove sudo
vivekmig Sep 13, 2023
023154f
Fix lint
vivekmig Sep 13, 2023
d035800
Mypy checks
vivekmig Sep 13, 2023
6c068df
split mypy
vivekmig Sep 14, 2023
d11974f
split mypy
vivekmig Sep 14, 2023
b0b47c3
Remove conda activate
vivekmig Sep 17, 2023
098ec4e
Fix
vivekmig Sep 18, 2023
eff23be
Add option
vivekmig Sep 18, 2023
09afb0b
Fix torch version
vivekmig Sep 18, 2023
939d818
Fix torch version
vivekmig Sep 18, 2023
626f808
Add script
vivekmig Oct 9, 2023
b6bcd66
Update pytorch version
vivekmig Oct 9, 2023
1296163
Switch to 11.8
vivekmig Oct 9, 2023
4c99efc
Upgrade cuda
vivekmig Oct 9, 2023
65d837f
Change architecture
vivekmig Oct 9, 2023
6eeb0c0
Remove circleci
vivekmig Oct 9, 2023
47d224a
Add deploy
vivekmig Oct 9, 2023
be2ea2e
Fixes
vivekmig Oct 9, 2023
a21247f
Remove ci env vars
vivekmig Oct 9, 2023
90f97d9
Deploy fix
vivekmig Oct 9, 2023
c8b3c5a
Remove workflows
vivekmig Oct 9, 2023
e55ea50
Fix
vivekmig Oct 9, 2023
de84894
Add job
vivekmig Oct 9, 2023
345c71e
Fixes
vivekmig Oct 12, 2023
0d83f10
Clean up
vivekmig Oct 12, 2023
627e13b
Remove insights from website pipeline
vivekmig Oct 20, 2023
34dd8cd
Remove yarn
vivekmig Oct 20, 2023
fdad86d
Unpin nbconvert
vivekmig Oct 20, 2023
789ca02
Pin jinja
vivekmig Oct 21, 2023
0ba19ff
Fixes
vivekmig Oct 21, 2023
1269a49
Test write
vivekmig Oct 21, 2023
55705f6
Modify branch test
vivekmig Oct 21, 2023
969352e
Add permission
vivekmig Oct 21, 2023
17a56d6
Final cleanup
vivekmig Oct 21, 2023
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
283 changes: 0 additions & 283 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Captum Lint

on:
pull_request:
push:
branches:
- master

workflow_dispatch:

jobs:
tests:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
docker-image: cimg/python:3.6
repository: pytorch/captum
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh
ufmt check .
flake8
sphinx-build -WT --keep-going sphinx/source sphinx/build
34 changes: 34 additions & 0 deletions .github/workflows/test-conda-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit-tests for Conda install

on:
pull_request:
push:
branches:
- master

workflow_dispatch:

env:
CHANNEL: "nightly"

jobs:
tests:
strategy:
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
repository: pytorch/captum
script: |
# Set up Environment Variables
export PYTHON_VERSION="${{ matrix.python_version }}"

# Create Conda Env
conda create -yp ci_env python="${PYTHON_VERSION}"
conda activate /pytorch/captum/ci_env
./scripts/install_via_conda.sh -n

# Run Tests
python3 -m pytest -ra --cov=. --cov-report term-missing
27 changes: 27 additions & 0 deletions .github/workflows/test-pip-cpu-with-mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Unit-tests for Pip install with mypy type checks

on:
pull_request:
push:
branches:
- master

workflow_dispatch:

jobs:
tests:
strategy:
matrix:
pytorch_args: ["", "-n"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
docker-image: cimg/python:3.6
repository: pytorch/captum
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh ${{ matrix.pytorch_args }}
./scripts/run_mypy.sh
# Run Tests
python3 -m pytest -ra --cov=. --cov-report term-missing
26 changes: 26 additions & 0 deletions .github/workflows/test-pip-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Unit-tests for Pip install

on:
pull_request:
push:
branches:
- master

workflow_dispatch:

jobs:
tests:
strategy:
matrix:
pytorch_args: ["-v 1.6", "-v 1.7", " -v 1.8", "-v 1.9"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
docker-image: cimg/python:3.6
repository: pytorch/captum
vivekmig marked this conversation as resolved.
Show resolved Hide resolved
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh ${{ matrix.pytorch_args }}
# Run Tests
python3 -m pytest -ra --cov=. --cov-report term-missing
Loading
Loading