@@ -943,118 +943,152 @@ jobs:
943943 py311 py312
944944 activate-environment : py311
945945
946- # not properly testable
947- # https://github.com/actions/runner/issues/2347
948- # https://github.com/orgs/community/discussions/15452
949- # test-cache-fail-no-lockfile:
950- # runs-on: ${{ matrix.os }}
951- # strategy:
952- # fail-fast: false
953- # matrix:
954- # os: [windows-latest, ubuntu-latest, macos-latest]
955- # steps:
956- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
957- # - name: Move pixi files
958- # run: mv test/no-lockfile/* .
959- # - uses: ./
960- # with:
961- # cache: true
962- # cache-key: test-cache-no-lockfile-${{ github.sha }}-${{ github.run_attempt }}-
963- # - run: exit 1
964- # if: success()
946+ test-cache-fail-no-lockfile :
947+ runs-on : ${{ matrix.os }}
948+ strategy :
949+ fail-fast : false
950+ matrix :
951+ os : [windows-latest, ubuntu-latest, macos-latest]
952+ steps :
953+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
954+ - name : Move pixi files
955+ run : mv test/no-lockfile/* .
956+ - uses : ./
957+ id : test
958+ with :
959+ cache : true
960+ cache-key : test-cache-no-lockfile-${{ github.sha }}-${{ github.run_attempt }}-
961+ continue-on-error : true
962+ - name : Fail on unexpected success
963+ run : |
964+ echo "Unexpected success!"
965+ exit 1
966+ if : ${{ steps.test.outcome != 'failure' }}
965967
966- # test-incorrect-version:
967- # runs-on: ${{ matrix.os }}
968- # strategy:
969- # fail-fast: false
970- # matrix:
971- # os: [windows-latest, ubuntu-latest, macos-latest]
972- # steps:
973- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
974- # - name: Move pixi files
975- # run: mv test/default/* .
976- # - uses: ./
977- # with:
978- # pixi-version: 0.1.0
979- # - run: exit 1
980- # if: success()
968+ test-incorrect-version :
969+ runs-on : ${{ matrix.os }}
970+ strategy :
971+ fail-fast : false
972+ matrix :
973+ os : [windows-latest, ubuntu-latest, macos-latest]
974+ steps :
975+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
976+ - name : Move pixi files
977+ run : mv test/default/* .
978+ - uses : ./
979+ id : test
980+ with :
981+ pixi-version : 0.1.0
982+ continue-on-error : true
983+ - name : Fail on unexpected success
984+ run : |
985+ echo "Unexpected success!"
986+ exit 1
987+ if : ${{ steps.test.outcome != 'failure' }}
981988
982- # test-frozen-and-locked:
983- # runs-on: ${{ matrix.os }}
984- # strategy:
985- # fail-fast: false
986- # matrix:
987- # os: [windows-latest, ubuntu-latest, macos-latest]
988- # steps:
989- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
990- # - name: Move pixi files
991- # run: mv test/default/* .
992- # - uses: ./
993- # with:
994- # pixi-version: v0.5.0
995- # frozen: true
996- # locked: true
997- # - run: exit 1
998- # if: success()
989+ test-frozen-and-locked :
990+ runs-on : ${{ matrix.os }}
991+ strategy :
992+ fail-fast : false
993+ matrix :
994+ os : [windows-latest, ubuntu-latest, macos-latest]
995+ steps :
996+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
997+ - name : Move pixi files
998+ run : mv test/default/* .
999+ - uses : ./
1000+ id : test
1001+ with :
1002+ pixi-version : v0.5.0
1003+ frozen : true
1004+ locked : true
1005+ continue-on-error : true
1006+ - name : Fail on unexpected success
1007+ run : |
1008+ echo "Unexpected success!"
1009+ exit 1
1010+ if : ${{ steps.test.outcome != 'failure' }}
9991011
1000- # test-frozen-no-lockfile:
1001- # runs-on: ${{ matrix.os }}
1002- # strategy:
1003- # fail-fast: false
1004- # matrix:
1005- # os: [windows-latest, ubuntu-latest, macos-latest]
1006- # steps:
1007- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1008- # - name: Move pixi files
1009- # run: mv test/no-lockfile/* .
1010- # - uses: ./
1011- # with:
1012- # frozen: true
1013- # - run: exit 1
1014- # if: success()
1012+ test-frozen-no-lockfile :
1013+ runs-on : ${{ matrix.os }}
1014+ strategy :
1015+ fail-fast : false
1016+ matrix :
1017+ os : [windows-latest, ubuntu-latest, macos-latest]
1018+ steps :
1019+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1020+ - name : Move pixi files
1021+ run : mv test/no-lockfile/* .
1022+ - uses : ./
1023+ id : test
1024+ with :
1025+ frozen : true
1026+ continue-on-error : true
1027+ - name : Fail on unexpected success
1028+ run : |
1029+ echo "Unexpected success!"
1030+ exit 1
1031+ if : ${{ steps.test.outcome != 'failure' }}
10151032
1016- # test-locked-no-lockfile:
1017- # runs-on: ${{ matrix.os }}
1018- # strategy:
1019- # fail-fast: false
1020- # matrix:
1021- # os: [windows-latest, ubuntu-latest, macos-latest]
1022- # steps:
1023- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1024- # - name: Move pixi files
1025- # run: mv test/no-lockfile/* .
1026- # - uses: ./
1027- # with:
1028- # locked: true
1029- # - run: exit 1
1030- # if: success()
1033+ test-locked-no-lockfile :
1034+ runs-on : ${{ matrix.os }}
1035+ strategy :
1036+ fail-fast : false
1037+ matrix :
1038+ os : [windows-latest, ubuntu-latest, macos-latest]
1039+ steps :
1040+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1041+ - name : Move pixi files
1042+ run : mv test/no-lockfile/* .
1043+ - uses : ./
1044+ id : test
1045+ with :
1046+ locked : true
1047+ continue-on-error : true
1048+ - name : Fail on unexpected success
1049+ run : |
1050+ echo "Unexpected success!"
1051+ exit 1
1052+ if : ${{ steps.test.outcome != 'failure' }}
10311053
1032- # test-lockfile-not-up-to-date:
1033- # runs-on: ${{ matrix.os }}
1034- # strategy:
1035- # fail-fast: false
1036- # matrix:
1037- # os: [windows-latest, ubuntu-latest, macos-latest]
1038- # steps:
1039- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1040- # - name: Move pixi files
1041- # run: mv test/lockfile-not-up-to-date/* .
1042- # - uses: ./
1043- # # locked: true is implicit
1044- # - run: exit 1
1045- # if: success()
1054+ test-lockfile-not-up-to-date :
1055+ runs-on : ${{ matrix.os }}
1056+ strategy :
1057+ fail-fast : false
1058+ matrix :
1059+ os : [windows-latest, ubuntu-latest, macos-latest]
1060+ steps :
1061+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1062+ - name : Move pixi files
1063+ run : mv test/lockfile-not-up-to-date/* .
1064+ - uses : ./
1065+ id : test
1066+ # locked: true is implicit
1067+ continue-on-error : true
1068+ - name : Fail on unexpected success
1069+ run : |
1070+ echo "Unexpected success!"
1071+ exit 1
1072+ if : ${{ steps.test.outcome != 'failure' }}
10461073
1047- # cache-write-true-no-lockfile:
1048- # timeout-minutes: 10
1049- # runs-on: ${{ matrix.os }}
1050- # strategy:
1051- # fail-fast: false
1052- # matrix:
1053- # os: [windows-latest, ubuntu-latest, macos-latest]
1054- # steps:
1055- # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1056- # - name: Move pixi files
1057- # run: mv test/no-lockfile/* .
1058- # - uses: ./
1059- # with:
1060- # cache-write: true
1074+ cache-write-true-no-lockfile :
1075+ timeout-minutes : 10
1076+ runs-on : ${{ matrix.os }}
1077+ strategy :
1078+ fail-fast : false
1079+ matrix :
1080+ os : [windows-latest, ubuntu-latest, macos-latest]
1081+ steps :
1082+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1083+ - name : Move pixi files
1084+ run : mv test/no-lockfile/* .
1085+ - uses : ./
1086+ id : test
1087+ with :
1088+ cache-write : true
1089+ continue-on-error : true
1090+ - name : Fail on unexpected success
1091+ run : |
1092+ echo "Unexpected success!"
1093+ exit 1
1094+ if : ${{ steps.test.outcome != 'failure' }}
0 commit comments