forked from olofk/fusesoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (40 loc) · 1.33 KB
/
tox.ini
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
[tox]
envlist = py3
[testenv]
# Dependencies prefixed with "ci: " are only installed when running in CI,
# which calls effectively "tox -e py3-ci" (see the gh-actions section below).
deps =
pytest
ci: pytest-github-actions-annotate-failures
# Some tests need an initialized FuseSoC library to be present. To make tests
# reproducible tox doesn't use the library installed into the user's home
# directory, but creates an isolated home directory within the tox working
# directory, and clears it out after each test.
commands =
/bin/rm -rf {toxworkdir}/.tmp/homedir
fusesoc init -y
fusesoc list-cores
fusesoc library update
pytest {posargs:-vv}
setenv =
MODEL_TECH = dummy_value
HOME = {toxworkdir}/.tmp/homedir
XDG_CACHE_HOME = {toxworkdir}/.tmp/homedir/.cache
XDG_DATA_HOME= {toxworkdir}/.tmp/homedir/.local/share
XDG_CONFIG_HOME = {toxworkdir}/.tmp/homedir/.config
passenv =
GITHUB_ACTIONS
whitelist_externals =
/bin/rm
[gh-actions]
# Mapping between the Python version used in GitHub Actions matrix builds, and
# the used Tox environment.
# XXX: This setting is currently overwritten on the command line for CI builds
# (see the pipeline configuration) due to
# https://github.com/ymyzk/tox-gh-actions/issues/44.
python =
3.5: py3-ci
3.6: py3-ci
3.7: py3-ci
3.8: py3-ci
3.9: py3-ci