Skip to content

Commit

Permalink
Change to use Ubuntu-latest instead of Ubuntu-18.04 in CI (#4986)
Browse files Browse the repository at this point in the history
* Update ci.yaml

* Update ci.yaml

* Update doc.yml

* Update ci.yaml

* Update doc.yml

* Update README.md

* Update .mergify.yml

* Update ci.yaml

* Update ci.yaml

* Update ci.yaml

* Update doc.yml

* Update ci.yaml

* Update install.sh

* Update install_k2.sh
  • Loading branch information
kamo-naoyuki committed Mar 6, 2023
1 parent 1fb3fb9 commit ab72501
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 33 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ jobs:
strategy:
max-parallel: 20
matrix:
os: [ubuntu-18.04]
os: [ubuntu-latest]
python-version: [3.7]
pytorch-version: [1.4.0, 1.5.1, 1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.2, 1.11.0, 1.12.1, 1.13.1]
chainer-version: [6.0.0]
# NOTE(kamo): Conda is tested by Circle-CI
use-conda: [false]
include:
- os: ubuntu-20.04
- os: ubuntu-latest
python-version: 3.8
pytorch-version: 1.13.1
chainer-verssion: 6.0.0
use-conda: false
- os: ubuntu-20.04
- os: ubuntu-latest
python-version: 3.9
pytorch-version: 1.13.1
chainer-verssion: 6.0.0
use-conda: false
- os: ubuntu-20.04
- os: ubuntu-latest
python-version: "3.10"
pytorch-version: 1.12.1
pytorch-version: 1.13.1
chainer-verssion: 6.0.0
use-conda: false
steps:
Expand All @@ -49,15 +49,14 @@ jobs:
- name: install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq -y cmake g++-7 libsndfile1-dev bc sox
# NOTE(kamo): g++-7 doesn't exist in ubuntu-latest
sudo apt-get install -qq -y cmake libsndfile1-dev bc sox
- name: install espnet
env:
ESPNET_PYTHON_VERSION: ${{ matrix.python-version }}
TH_VERSION: ${{ matrix.pytorch-version }}
CHAINER_VERSION: ${{ matrix.chainer-version }}
USE_CONDA: ${{ matrix.use-conda }}
CC: gcc-7
CXX: g++-7
run: |
./ci/install.sh
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
linter_and_test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v1
Expand All @@ -26,15 +26,13 @@ jobs:
- name: install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq -y cmake python3-dev git g++-7 pandoc ffmpeg bc
sudo apt-get install -qq -y cmake python3-dev git pandoc ffmpeg bc
- name: install espnet
env:
ESPNET_PYTHON_VERSION: 3.8
TH_VERSION: 1.13.1
CHAINER_VERSION: 6.0.0
USE_CONDA: false
CC: gcc-7
CXX: g++-7
run: ./ci/install.sh
- name: generate doc
run: ./ci/doc.sh
Expand Down
26 changes: 13 additions & 13 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ pull_request_rules:
- "label=auto-merge"
- "check-success=test_centos7"
- "check-success=test_debian9"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.4.0, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.5.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.6.0, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.7.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.8.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.9.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.10.2, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.11.0, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.12.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-18.04, 3.7, 1.13.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-20.04, 3.8, 1.13.1, false, 6.0.0)"
- "check-success=linter_and_test (ubuntu-20.04, 3.9, 1.13.1, false, 6.0.0)"
- "check-success=linter_and_test (ubuntu-20.04, 3.10, 1.13.1, false, 6.0.0)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.4.0, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.5.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.6.0, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.7.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.8.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.9.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.10.2, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.11.0, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.12.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.7, 1.13.1, 6.0.0, false)"
- "check-success=linter_and_test (ubuntu-latest, 3.8, 1.13.1, false, 6.0.0)"
- "check-success=linter_and_test (ubuntu-latest, 3.9, 1.13.1, false, 6.0.0)"
- "check-success=linter_and_test (ubuntu-latest, 3.10, 1.13.1, false, 6.0.0)"
- "check-success=test_import (ubuntu-latest, 3.10, 1.13.1)"
actions:
merge:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

|system/pytorch ver.|1.4.0|1.5.1|1.6.0|1.7.1|1.8.1|1.9.1|1.10.2|1.11.0|1.12.1|1.13.1|
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|ubuntu20/python3.10/pip||||||||||[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu20/python3.9/pip||||||||||[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu20/python3.8/pip||||||||||[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu18/python3.7/pip|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu/python3.10/pip||||||||||[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu/python3.9/pip||||||||||[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu/python3.8/pip||||||||||[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|ubuntu/python3.7/pip|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|[![Github Actions](https://github.com/espnet/espnet/workflows/CI/badge.svg)](https://github.com/espnet/espnet/actions)|
|debian9/python3.7/conda||||||||||[![debian9](https://github.com/espnet/espnet/workflows/debian9/badge.svg)](https://github.com/espnet/espnet/actions?query=workflow%3Adebian9)|
|centos7/python3.7/conda||||||||||[![centos7](https://github.com/espnet/espnet/workflows/centos7/badge.svg)](https://github.com/espnet/espnet/actions?query=workflow%3Acentos7)|
|doc/python3.8||||||||||[![doc](https://github.com/espnet/espnet/workflows/doc/badge.svg)](https://github.com/espnet/espnet/actions?query=workflow%3Adoc)|
|ubuntu/doc/python3.8||||||||||[![doc](https://github.com/espnet/espnet/workflows/doc/badge.svg)](https://github.com/espnet/espnet/actions?query=workflow%3Adoc)|



Expand Down
3 changes: 2 additions & 1 deletion ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ ${CXX:-g++} -v
fi

. ./activate_python.sh
make TH_VERSION="${TH_VERSION}" WITH_OMP="${WITH_OMP-ON}" all warp-transducer.done chainer_ctc.done nkf.done moses.done mwerSegmenter.done pesq pyopenjtalk.done py3mmseg.done s3prl.done transformers.done phonemizer.done fairseq.done k2.done gtn.done longformer.done whisper.done
# FIXME(kamo): Failed to compile pesq
make TH_VERSION="${TH_VERSION}" WITH_OMP="${WITH_OMP-ON}" all warp-transducer.done chainer_ctc.done nkf.done moses.done mwerSegmenter.done pyopenjtalk.done py3mmseg.done s3prl.done transformers.done phonemizer.done fairseq.done k2.done gtn.done longformer.done whisper.done
rm -rf kaldi
)
. tools/activate_python.sh
Expand Down
3 changes: 1 addition & 2 deletions tools/installers/install_k2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ torch_version=torch.__version__.split("+")[0]
print(torch_version)
EOF
)
libc_path="$(ldd /bin/bash | grep libc.so | awk '{ print $3 }')"
libc_version="$(${libc_path} | grep "GNU C Library" | grep -oP "version [0-9]*.[0-9]*" | cut -d" " -f2)"
libc_version="$(ldd --version | awk 'NR==1 {print $NF}')"

pytorch_plus(){
python3 <<EOF
Expand Down

0 comments on commit ab72501

Please sign in to comment.