2929 # https://github.com/orgs/community/discussions/57827
3030 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3131
32+ defaults :
33+ run :
34+ shell : bash -el {0}
35+
3236 strategy :
3337 matrix :
3438 include :
@@ -39,13 +43,10 @@ jobs:
3943 name : ${{ matrix.label }}
4044 runs-on : ${{ matrix.os }}
4145 steps :
42- - uses : actions/checkout@v4
43-
44- - name : Build C
45- run : make -C qstack/regression/lib/
46+ - uses : actions/checkout@v5
4647
4748 - name : Setup Miniforge
48- uses : conda-incubator/setup-miniconda@v2
49+ uses : conda-incubator/setup-miniconda@v3
4950 with :
5051 miniforge-version : latest
5152 activate-environment : my-env
@@ -64,15 +65,23 @@ jobs:
6465 run : conda env update -n my-env -f environment.yml
6566 if : steps.cache.outputs.cache-hit != 'true'
6667
68+ - name : Build C
69+ run : make -C qstack/regression/lib/
70+
6771 - name : Run tests
68- shell : bash -l {0}
6972 run : pytest ./tests
7073
7174
7275 # maybe split back into two workflows depending on each other
76+
7377 build-docs :
78+
7479 needs : build
7580
81+ defaults :
82+ run :
83+ shell : bash -el {0}
84+
7685 strategy :
7786 matrix :
7887 include :
@@ -83,10 +92,10 @@ jobs:
8392 name : ${{ matrix.label }}
8493 runs-on : ${{ matrix.os }}
8594 steps :
86- - uses : actions/checkout@v4
95+ - uses : actions/checkout@v5
8796
8897 - name : Setup Miniforge
89- uses : conda-incubator/setup-miniconda@v2
98+ uses : conda-incubator/setup-miniconda@v3
9099 with :
91100 miniforge-version : latest
92101 activate-environment : my-env
@@ -112,15 +121,12 @@ jobs:
112121
113122 - name : Install documentation requirements
114123 if : steps.cache-doc.outputs.cache-hit != 'true'
115- shell : bash -l {0}
116124 run : pip install -r docs/requirements.txt
117125
118126 - name : Build documentation src
119- shell : bash -l {0}
120127 run : make build-src -C docs/
121128
122129 - name : Build HTML
123- shell : bash -l {0}
124130 run : make html -C docs/
125131
126132 - name : Upload artifacts
0 commit comments