diff --git a/.github/actions/install-main-dependencies/action.yml b/.github/actions/install-main-dependencies/action.yml index d06a238df..70c64492a 100644 --- a/.github/actions/install-main-dependencies/action.yml +++ b/.github/actions/install-main-dependencies/action.yml @@ -43,7 +43,7 @@ runs: run: | if [ "${{ inputs.qiskit-main }}" == "true" ]; then echo 'Install Qiskit from Main' - if [ "${{ inputs.os }}" == "windows-2019" ]; then + if [ "${{ inputs.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -77,7 +77,7 @@ runs: fi else echo 'Install Qiskit from Stable' - if [ "${{ inputs.os }}" == "windows-2019" ]; then + if [ "${{ inputs.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -87,7 +87,7 @@ runs: - name: Install stable Aer run: | echo 'Install stable Aer' - if [ "${{ inputs.os }}" == "windows-2019" ]; then + if [ "${{ inputs.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi diff --git a/.github/actions/install-optimization/action.yml b/.github/actions/install-optimization/action.yml index 53960049b..ca4c04161 100644 --- a/.github/actions/install-optimization/action.yml +++ b/.github/actions/install-optimization/action.yml @@ -20,7 +20,7 @@ runs: using: "composite" steps: - run : | - if [ "${{ inputs.os }}" == "windows-2019" ]; then + if [ "${{ inputs.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 4a617d895..2d39a1041 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -32,7 +32,7 @@ runs: env: PYTHONWARNINGS: default run: | - if [ "${{ inputs.os }}" == "windows-2019" ]; then + if [ "${{ inputs.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb20a89da..8324806ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -122,9 +122,9 @@ jobs: python-version: 3.8 - os: macos-latest python-version: '3.10' - - os: windows-2019 + - os: windows-latest python-version: 3.8 - - os: windows-2019 + - os: windows-latest python-version: '3.10' steps: - uses: actions/checkout@v3 @@ -142,7 +142,7 @@ jobs: conda create -y -n scsenv python=${{ matrix.python-version }} -c conda-forge conda activate scsenv conda install -y scs lapack cvxpy -c conda-forge - if: ${{ matrix.os == 'windows-2019' }} + if: ${{ matrix.os == 'windows-latest' }} shell: bash - uses: ./.github/actions/install-main-dependencies with: @@ -154,7 +154,7 @@ jobs: os: ${{ matrix.os }} - name: Run lint run: | - if [ "${{ matrix.os }}" == "windows-2019" ]; then + if [ "${{ matrix.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -162,7 +162,7 @@ jobs: shell: bash - name: Run mypy run: | - if [ "${{ matrix.os }}" == "windows-2019" ]; then + if [ "${{ matrix.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -179,7 +179,7 @@ jobs: if: ${{ !cancelled() }} - name: Deprecation Messages run: | - if [ "${{ matrix.os }}" == "windows-2019" ]; then + if [ "${{ matrix.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -188,7 +188,7 @@ jobs: shell: bash - name: Coverage combine run: | - if [ "${{ matrix.os }}" == "windows-2019" ]; then + if [ "${{ matrix.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -204,7 +204,7 @@ jobs: env: PYTHONWARNINGS: default run: | - if [ "${{ matrix.os }}" == "windows-2019" ]; then + if [ "${{ matrix.os }}" == "windows-latest" ]; then source "$CONDA/etc/profile.d/conda.sh" conda activate scsenv fi @@ -333,11 +333,11 @@ jobs: path: /tmp/m310 - uses: actions/download-artifact@v3 with: - name: windows-2019-3.8 + name: windows-latest-3.8 path: /tmp/w38 - uses: actions/download-artifact@v3 with: - name: windows-2019-3.10 + name: windows-latest-3.10 path: /tmp/w310 - name: Install Dependencies run: pip install -U coverage coveralls diff-cover