-
-
Notifications
You must be signed in to change notification settings - Fork 146
58 lines (54 loc) · 1.66 KB
/
python-test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: All Test(s) Against Multiple Python Versions
on: []
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install test dependencies (gs)
run: |
sudo apt-get -y install ghostscript
- name: Install test dependencies (gTTS)
run: |
pip install gTTS
- name: Install test dependencies (lxml)
run: |
pip install lxml
- name: Install test dependencies (markdown-it-py)
run: |
pip install markdown-it-py
- name: Install test dependencies (matplotlib)
run: |
pip install matplotlib==3.5.3
- name: Install test dependencies (nltk)
run: |
pip install nltk
- name: Install test dependencies (opencv-python)
run: |
pip install opencv-python
- name: Install test dependencies (pandas)
run: |
pip install pandas
- name: Install test dependencies (textblob)
run: |
pip install textblob
- name: Test with pytest
run: |
pytest
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-artifacts
path: tests/output/