Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
switch to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
KumaTea committed Jun 21, 2021
1 parent 883ff86 commit f24fb12
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 7 deletions.
63 changes: 63 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: 2.1

jobs:
# py310:
# machine:
# image: ubuntu-2004:202104-01
# resource_class: arm.medium
# steps:
# - run: |
# git clone https://github.com/KumaTea/pytorch-aarch64
# cd pytorch-aarch64
# sudo bash test/test.sh python3.10

py39:
machine:
image: ubuntu-2004:202104-01
resource_class: arm.medium
steps:
- run: |
sudo apt update
git clone https://github.com/KumaTea/pytorch-aarch64
cd pytorch-aarch64
sudo bash test/test.sh python3.9
py38:
machine:
image: ubuntu-2004:202104-01
resource_class: arm.medium
steps:
- run: |
git clone https://github.com/KumaTea/pytorch-aarch64
cd pytorch-aarch64
sudo bash test/test.sh python3.8
py37:
machine:
image: ubuntu-2004:202104-01
resource_class: arm.medium
steps:
- run: |
git clone https://github.com/KumaTea/pytorch-aarch64
cd pytorch-aarch64
sudo bash test/test.sh python3.7
py36:
machine:
image: ubuntu-2004:202104-01
resource_class: arm.medium
steps:
- run: |
git clone https://github.com/KumaTea/pytorch-aarch64
cd pytorch-aarch64
sudo bash test/test.sh python3.6
workflows:
build:
jobs:
# - py310
- py39
- py38
- py37
- py36
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
__pycache__
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pytorch-aarch64

[![Build Status][40]][41] [![Coverage][43]][16]
[![Build Status][50]][51] [![Coverage][43]][16]

[PyTorch][20], [vision][21], [audio][22], [text][28] and [csprng][42]
wheels (whl) and docker images
Expand Down Expand Up @@ -221,3 +221,5 @@ Note:
[47]: https://www.ffmpeg.org
[48]: https://github.com/KumaTea/pytorch-aarch64/releases/tag/v1.8.1
[49]: https://download.pytorch.org/whl/torch_stable.html
[50]: https://circleci.com/gh/KumaTea/pytorch-aarch64.svg?style=svg
[51]: https://circleci.com/gh/KumaTea/pytorch-aarch64
17 changes: 13 additions & 4 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@

set -ex

pip install torch -f https://torch.kmtea.eu/whl/stable.html
# aarch64
PYVER=$1

pip install torchvision torchaudio torchtext torchcsprng -f https://torch.kmtea.eu/whl/stable.html
python3 test/torch-test.py
sudo apt update
sudo apt install -y git software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt install -y $PYVER

bash test/check-arch.sh
$PYVER -m pip install -U pip setuptools wheel
$PYVER -m pip install cffi dataclasses future numpy pillow pyyaml requests six typing_extensions tqdm -f https://ext.kmtea.eu/whl/stable.html
$PYVER -m pip install torch -f https://torch.kmtea.eu/whl/stable.html
$PYVER -m pip install torchvision torchaudio torchtext -f https://torch.kmtea.eu/whl/stable.html
# Temporarily skip torchcsprng
$PYVER test/torch-test.py
4 changes: 2 additions & 2 deletions test/torch-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import torchaudio
import torchvision
import torchtext
import torchcsprng
# import torchcsprng


print(torch.__version__)
print(torchaudio.__version__)
print(torchvision.__version__)
print(torchtext.__version__)
print(torchcsprng.__version__)
# print(torchcsprng.__version__)

0 comments on commit f24fb12

Please sign in to comment.