Skip to content

Commit e6bae6a

Browse files
committed
test.yaml: add 3.10
1 parent 24f6a0b commit e6bae6a

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.6", "3.7", "3.8", "3.9"]
10+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python
@@ -19,35 +19,26 @@ jobs:
1919
python_version: ${{ matrix.python-version }}
2020
boost_version: "1.79.0"
2121
run: |
22-
python_version_abbr=${python_version//./}
23-
boost_version_alias=boost_${boost_version//./_}
22+
python_version_abbr="${python_version//./}"
23+
boost_version_alias="boost_${boost_version//./_}"
2424
sudo apt-get update
2525
sudo apt-get install gcc -y
2626
sudo apt-get install g++ -y
27-
wget https://boostorg.jfrog.io/artifactory/main/release/${boost_version}/source/${boost_version_alias}.tar.gz
28-
tar -xf ${boost_version_alias}.tar.gz
29-
cd ${boost_version_alias}
27+
wget "https://boostorg.jfrog.io/artifactory/main/release/${boost_version}/source/${boost_version_alias}.tar.gz"
28+
tar -xf "${boost_version_alias}.tar.gz"
29+
cd "${boost_version_alias}"
3030
./bootstrap.sh --with-python=python
3131
sudo ./b2 cxxflags="-fPIC" install --with-python
3232
cd ${{ github.workspace }}
3333
34-
sudo ln -s /usr/local/lib/libboost_python${python_version_abbr}.a /usr/local/lib/libboost_python.a
34+
sudo ln -s "/usr/local/lib/libboost_python${python_version_abbr}.a" "/usr/local/lib/libboost_python.a"
3535
pip install pytest
3636
pip install Pillow
3737
pip install kiwisolver
3838
pip install gensim
3939
pip install lxml
4040
python setup.py build_ext -l boost_python -L "/usr/local/lib" -I "/usr/local/include"
4141
python setup.py install
42-
# python setup.py egg_info
43-
# pip install -r *.egg-info/requires.txt
44-
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
45-
# - name: Lint with flake8
46-
# run: |
47-
# # stop the build if there are Python syntax errors or undefined names
48-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
49-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
50-
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
5142
- name: Test with pytest
5243
run: |
5344
cd ${{ github.workspace }}

0 commit comments

Comments
 (0)