@@ -5,7 +5,7 @@ on: [merge_group, pull_request, push, workflow_dispatch]
55jobs :
66 test :
77 strategy :
8- fail-fast : false
8+ fail-fast : true
99 matrix :
1010 os :
1111 - ubuntu-20.04
@@ -20,30 +20,22 @@ jobs:
2020 - name : Fetch sources
2121 uses : actions/checkout@v3
2222
23- - name : Set up Python
24- uses : actions/setup-python@v4
25- with :
26- python-version : ${{ matrix.python }}
27-
28- - uses : actions/cache@v3
29- with :
30- path : ~/.cache/pip
31- key : ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('minimum-requirements-ci.txt', 'pyproject.toml') }}
32- restore-keys : |
33- ${{ runner.os }}-${{ matrix.python-version }}-pip-
34-
35- - name : Install required Python packages
36- run : |
37- python -m pip install --upgrade pip
38- python -m pip install nox toml
23+ - name : DEBUG INFO
24+ env :
25+ GITHUB_EVENT_NAME : ${{ github.event_name }}
26+ GITHUB_EVENT : ${{ toJSON(github.event) }}
27+ run : ' echo "$GITHUB_EVENT_NAME: $GITHUB_EVENT" && test $GITHUB_EVENT_NAME != push'
3928
40- - name : run nox
41- run : nox -e ci_checks_max pytest_min
42- timeout-minutes : 10
4329
4430 build-dist :
4531 runs-on : ubuntu-20.04
4632 steps :
33+ - name : DEBUG INFO
34+ env :
35+ GITHUB_EVENT_NAME : ${{ github.event_name }}
36+ GITHUB_EVENT : ${{ toJSON(github.event) }}
37+ run : ' echo "$GITHUB_EVENT_NAME: $GITHUB_EVENT" && false'
38+
4739 - name : Fetch sources
4840 uses : actions/checkout@v3
4941
8072 - name : Fetch sources
8173 uses : actions/checkout@v3
8274
83- - name : Setup Git user and e-mail
84- uses : frequenz-floss/setup-git-user@v2
85-
86- - name : Set up Python
87- uses : actions/setup-python@v4
88- with :
89- python-version : ${{ env.DEFAULT_PYTHON_VERSION }}
90-
91- - name : Install build dependencies
92- run : |
93- python -m pip install -U pip
94- python -m pip install .[docs-gen]
95-
96- - name : Generate the documentation
97- env :
98- MIKE_VERSION : gh-${{ github.job }}
99- run : |
100- mike deploy $MIKE_VERSION
101- mike set-default $MIKE_VERSION
102-
103- - name : Upload site
104- uses : actions/upload-artifact@v3
105- with :
106- name : frequenz-channels-python-site
107- path : site/
108- if-no-files-found : error
109-
11075 publish-docs :
11176 needs : ["test", "build-dist"]
11277 # We shouldn't need the reference name here, but `merge_group` is being executed as if it was `push`
0 commit comments