-
Notifications
You must be signed in to change notification settings - Fork 19
45 lines (43 loc) · 1.35 KB
/
centos7.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: centos7
on: [push, pull_request]
jobs:
check_skip:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"
linter_and_test:
runs-on: ubuntu-latest
container:
image: centos:7
env:
SVS_PYTHON_VERSION: 3.8
TH_VERSION: 1.7.1
USE_CONDA: true
CC: /opt/rh/devtoolset-7/root/usr/bin/gcc
CXX: /opt/rh/devtoolset-7/root/usr/bin/g++
# To avoid UnicodeEncodeError for python<=3.6
LC_ALL: en_US.UTF-8
needs: check_skip
steps:
- uses: actions/checkout@master
- name: check OS
run: cat /etc/os-release
- name: install dependencies
run: |
yum install -y git centos-release-scl make bzip2 wget which unzip bc
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install -y devtoolset-7-gcc-c++
localedef -f UTF-8 -i en_US en_US
- name: install SVS
run: |
PATH="/opt/rh/devtoolset-7/root/usr/bin:${PATH:-}"
./ci/install.sh
- name: test shell
run: |
PATH="/opt/rh/devtoolset-7/root/usr/bin:${PATH:-}"
./ci/test_shell.sh
- name: test python
run: |
PATH="/opt/rh/devtoolset-7/root/usr/bin:${PATH:-}"
./ci/test_python.sh