forked from dpath-maintainers/dpath-python
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (77 loc) · 3.31 KB
/
python3Test.yml
File metadata and controls
92 lines (77 loc) · 3.31 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
# ------------------------------------------------------------
# (C) Alain Lichnewsky, 2021
#
# For running under Github's Actions
#
# Script performs basic test of the Python-3 version of the package
# including added functionality.
# ------------------------------------------------------------
on:
# [push]
workflow_dispatch:
jobs:
test-python3:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: [ '3.8' , 'pypy-3.7' ]
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}\'
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ** here (it is expected that) **
# pythonLocation: /opt/hostedtoolcache/Python/3.8.8/x64
# LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.8/x64/lib
# Working dir /home/runner/work/dpath-python/dpath-python
# HOME: /home/runner
# LANG: C.UTF-8
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: Install dependencies
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# requirements install the test framework, which is not
# required by the package in setup.py
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
run: |
python -m pip install --upgrade pip setuptools wheel
if [ -f requirements.txt ]; then
pip install -r requirements.txt;
fi
python setup.py install
echo which nose :$(which nose)
echo which nose2: $(which nose2)
echo which nose2-3.6: $(which nose2-3.6)
echo which nose2-3.8: $(which nose2-3.8)
- name: Tox testing
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# move to tox testing, otherwise will have to parametrize
# nose in more details; here tox.ini will apply
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
run: |
pip install tox
echo "Installed tox"
tox
echo "Ran tox"
- name: Nose2 testing
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Last try... with a nose2.cfg file
#
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
run: |
nose2 -c nose2.cfg