forked from dpath-maintainers/dpath-python
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (79 loc) · 3.23 KB
/
python3Test.yml
File metadata and controls
92 lines (79 loc) · 3.23 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Test python package dpath-python with regexp extension
# ------------------------------------------------------------
# (C) Alain Lichnewsky, 2021, 2022, 2023
#
# For running under Github's Actions
#
# ------------------------------------------------------------
# *****************************
# ADDED FOR TESTING PRIOR TO PR
# REMOVE FROM PR submission
# *****************************
on:
workflow_dispatch:
# Allows manual dispatch from the Actions tab
jobs:
test-python3:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
# Match versions specified in tox.ini and tox-set-rex.ini
python-version: ['3.8', '3.11', 'pypy3.7', 'pypy3.9']
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Ascertain configuration
#
# Collect information concerning $HOME and the location of
# file(s) loaded from Github/
run: |
echo Working dir: $(pwd)
echo Files at this location:
ls -ltha
echo HOME: ${HOME}
echo LANG: ${LANG} SHELL: ${SHELL}
which python
echo LD_LIBRARY_PATH: ${LD_LIBRARY_PATH}
echo PYTHONPATH: \'${PYTHONPATH}\'
- name: Install dependencies
shell: bash
if: always()
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# requirements install the test framework, which is not
# required by the package in setup.py
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
run: |
python -m pip install --upgrade pip setuptools wheel \
nose2 hypothesis
if [ -f requirements.txt ]; then
pip install -r requirements.txt;
fi
python setup.py install
pip install tox
echo "Installed tox"
- name: Tox test with default DPATH_ALLOW_REGEX not set
shell: bash
if: always()
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# tox testing, here tox.ini is used
# DPATH_ALLOW_REGEX not set
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
run: |
tox
echo "Ran tox"
- name: Tox test with DPATH_ALLOW_REGEX = TRUE
shell: bash
if: always()
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# tox testing, here tox-set-rex.ini is used
# DPATH_ALLOW_REGEX = TRUE
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
run: |
tox -c tox-set-rex.ini
echo "Ran tox -c tox-set-rex.ini"