-
Notifications
You must be signed in to change notification settings - Fork 34
62 lines (59 loc) · 1.73 KB
/
run_tests.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
59
60
61
62
name: Run tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
inputs:
target:
description: 'Target branch to run'
required: true
jobs:
run_python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
# Test against Pandas 1.2, 1.3, and latest version
pandas-version: ["1.2.*", "1.3.*", ""]
exclude:
# Test all Pandas versions with Python 3.8, exclude others
- python-version: 3.7
pandas-version: "1.1.*"
- python-version: 3.7
pandas-version: "1.2.*"
- python-version: 3.8
pandas-version: "1.1.*"
- python-version: 3.8
pandas-version: "1.2.*"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Setup Conda Environment
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PANDAS_VERSION: ${{ matrix.pandas-version }}
run: |
echo "Conda base path: ${CONDA}"
hash -r
source "${CONDA}/etc/profile.d/conda.sh"
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
$CONDA/bin/conda update -q conda
$CONDA/bin/conda info -a
CONDA_HOME="${CONDA}" ./env.sh --use_active_env
- name: Print installed packages
run: |
conda list
pip list
which python
which pytest
- name: Test with pytest
run: |
pytest -v text_extensions_for_pandas