|
16 | 16 | strategy: |
17 | 17 | matrix: |
18 | 18 | sls-version: [2, 3] |
19 | | - pipenv-version: ['2022.8.5', '2022.8.13', '2023.7.4', '2023.7.9'] |
20 | | - # pipenv 2202.8.13 marks deprecation of pipenv lock --requirements |
21 | | - # https://github.com/pypa/pipenv/blob/30067b458bd7a429f242736b7fde40c9bd4d4f14/CHANGELOG.rst#2022813-2022-08-13 |
22 | | - # pipenv 2023.7.9 marks deprecation of pipenv lock --keep-outdated |
23 | | - # https://github.com/pypa/pipenv/blob/30067b458bd7a429f242736b7fde40c9bd4d4f14/CHANGELOG.rst#202379-2023-07-09 |
24 | 19 | steps: |
25 | 20 | - name: Checkout repository |
26 | 21 | uses: actions/checkout@v2 |
|
66 | 61 | run: python -m pip install --force setuptools wheel |
67 | 62 |
|
68 | 63 | - name: Install pipenv / poetry |
69 | | - run: python -m pip install pipenv==${{ matrix.pipenv-version }} poetry |
| 64 | + run: python -m pip install pipenv poetry |
70 | 65 |
|
71 | 66 | - name: Install serverless |
72 | 67 | run: npm install -g serverless@${{ matrix.sls-version }} |
|
92 | 87 | fi |
93 | 88 | - name: Unit tests |
94 | 89 | run: npm test |
95 | | - |
96 | | - windowsNode14: |
97 | | - name: '[Windows] Node.js v14: Unit tests' |
98 | | - runs-on: windows-latest |
99 | | - strategy: |
100 | | - matrix: |
101 | | - sls-version: [2, 3] |
102 | | - pipenv-version: ['2022.8.5', '2022.8.13', '2023.7.4', '2023.7.9'] |
103 | | - steps: |
104 | | - - name: Checkout repository |
105 | | - uses: actions/checkout@v2 |
106 | | - |
107 | | - - name: Retrieve dependencies from cache |
108 | | - id: cacheNpm |
109 | | - uses: actions/cache@v2 |
110 | | - with: |
111 | | - path: | |
112 | | - ~/.npm |
113 | | - node_modules |
114 | | - key: npm-v14-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }} |
115 | | - restore-keys: | |
116 | | - npm-v14-${{ runner.os }}-${{ github.ref }}- |
117 | | - npm-v14-${{ runner.os }}-refs/heads/master- |
118 | | -
|
119 | | - - name: Set up Python 3.7 |
120 | | - uses: actions/setup-python@v2 |
121 | | - with: |
122 | | - python-version: 3.7 |
123 | | - |
124 | | - - name: Install Node.js and npm |
125 | | - uses: actions/setup-node@v1 |
126 | | - with: |
127 | | - node-version: 14.x |
128 | | - |
129 | | - - name: Check python version |
130 | | - run: | |
131 | | - python --version |
132 | | -
|
133 | | - - name: Install setuptools |
134 | | - run: python -m pip install --force setuptools wheel |
135 | | - |
136 | | - - name: Install pipenv / poetry |
137 | | - run: python -m pip install pipenv==${{ matrix.pipenv-version }} poetry |
138 | | - |
139 | | - - name: Install serverless |
140 | | - run: npm install -g serverless@${{ matrix.sls-version }} |
141 | | - |
142 | | - - name: Install dependencies |
143 | | - if: steps.cacheNpm.outputs.cache-hit != 'true' |
144 | | - run: | |
145 | | - npm update --no-save |
146 | | - npm update --save-dev --no-save |
147 | | - - name: Unit tests |
148 | | - run: npm test |
0 commit comments