Skip to content

Commit 31975d6

Browse files
authored
Update CI to use latest windows (#565)
1 parent 592385e commit 31975d6

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/actions/install-main-dependencies/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
run: |
4444
if [ "${{ inputs.qiskit-main }}" == "true" ]; then
4545
echo 'Install Qiskit from Main'
46-
if [ "${{ inputs.os }}" == "windows-2019" ]; then
46+
if [ "${{ inputs.os }}" == "windows-latest" ]; then
4747
source "$CONDA/etc/profile.d/conda.sh"
4848
conda activate scsenv
4949
fi
@@ -77,7 +77,7 @@ runs:
7777
fi
7878
else
7979
echo 'Install Qiskit from Stable'
80-
if [ "${{ inputs.os }}" == "windows-2019" ]; then
80+
if [ "${{ inputs.os }}" == "windows-latest" ]; then
8181
source "$CONDA/etc/profile.d/conda.sh"
8282
conda activate scsenv
8383
fi
@@ -87,7 +87,7 @@ runs:
8787
- name: Install stable Aer
8888
run: |
8989
echo 'Install stable Aer'
90-
if [ "${{ inputs.os }}" == "windows-2019" ]; then
90+
if [ "${{ inputs.os }}" == "windows-latest" ]; then
9191
source "$CONDA/etc/profile.d/conda.sh"
9292
conda activate scsenv
9393
fi

.github/actions/install-optimization/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
using: "composite"
2121
steps:
2222
- run : |
23-
if [ "${{ inputs.os }}" == "windows-2019" ]; then
23+
if [ "${{ inputs.os }}" == "windows-latest" ]; then
2424
source "$CONDA/etc/profile.d/conda.sh"
2525
conda activate scsenv
2626
fi

.github/actions/run-tests/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
env:
3333
PYTHONWARNINGS: default
3434
run: |
35-
if [ "${{ inputs.os }}" == "windows-2019" ]; then
35+
if [ "${{ inputs.os }}" == "windows-latest" ]; then
3636
source "$CONDA/etc/profile.d/conda.sh"
3737
conda activate scsenv
3838
fi

.github/workflows/main.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ jobs:
122122
python-version: 3.8
123123
- os: macos-latest
124124
python-version: '3.10'
125-
- os: windows-2019
125+
- os: windows-latest
126126
python-version: 3.8
127-
- os: windows-2019
127+
- os: windows-latest
128128
python-version: '3.10'
129129
steps:
130130
- uses: actions/checkout@v3
@@ -142,7 +142,7 @@ jobs:
142142
conda create -y -n scsenv python=${{ matrix.python-version }} -c conda-forge
143143
conda activate scsenv
144144
conda install -y scs lapack cvxpy -c conda-forge
145-
if: ${{ matrix.os == 'windows-2019' }}
145+
if: ${{ matrix.os == 'windows-latest' }}
146146
shell: bash
147147
- uses: ./.github/actions/install-main-dependencies
148148
with:
@@ -154,15 +154,15 @@ jobs:
154154
os: ${{ matrix.os }}
155155
- name: Run lint
156156
run: |
157-
if [ "${{ matrix.os }}" == "windows-2019" ]; then
157+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
158158
source "$CONDA/etc/profile.d/conda.sh"
159159
conda activate scsenv
160160
fi
161161
make lint
162162
shell: bash
163163
- name: Run mypy
164164
run: |
165-
if [ "${{ matrix.os }}" == "windows-2019" ]; then
165+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
166166
source "$CONDA/etc/profile.d/conda.sh"
167167
conda activate scsenv
168168
fi
@@ -179,7 +179,7 @@ jobs:
179179
if: ${{ !cancelled() }}
180180
- name: Deprecation Messages
181181
run: |
182-
if [ "${{ matrix.os }}" == "windows-2019" ]; then
182+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
183183
source "$CONDA/etc/profile.d/conda.sh"
184184
conda activate scsenv
185185
fi
@@ -188,7 +188,7 @@ jobs:
188188
shell: bash
189189
- name: Coverage combine
190190
run: |
191-
if [ "${{ matrix.os }}" == "windows-2019" ]; then
191+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
192192
source "$CONDA/etc/profile.d/conda.sh"
193193
conda activate scsenv
194194
fi
@@ -204,7 +204,7 @@ jobs:
204204
env:
205205
PYTHONWARNINGS: default
206206
run: |
207-
if [ "${{ matrix.os }}" == "windows-2019" ]; then
207+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
208208
source "$CONDA/etc/profile.d/conda.sh"
209209
conda activate scsenv
210210
fi
@@ -333,11 +333,11 @@ jobs:
333333
path: /tmp/m310
334334
- uses: actions/download-artifact@v3
335335
with:
336-
name: windows-2019-3.8
336+
name: windows-latest-3.8
337337
path: /tmp/w38
338338
- uses: actions/download-artifact@v3
339339
with:
340-
name: windows-2019-3.10
340+
name: windows-latest-3.10
341341
path: /tmp/w310
342342
- name: Install Dependencies
343343
run: pip install -U coverage coveralls diff-cover

0 commit comments

Comments
 (0)