Update dependency pytest to v8.3.1 #1001
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: tests | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
# | |
# setup system | |
# | |
- name: python install | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: pipenv install | |
run: | |
python -m pip install --upgrade pipenv wheel | |
- name: nodejs install | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "15" | |
# | |
# python dependencies | |
# | |
- name: python virtualenv cache | |
id: cache-pipenv | |
uses: actions/cache@v4 | |
with: | |
path: ~/.local/share/virtualenvs | |
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | |
- name: python virtualenv install | |
run: pipenv install | |
if: steps.cache-pipenv.outputs.cache-hit != 'true' | |
# | |
# nodejs dependencies | |
# | |
- name: nodejs modules cache | |
id: cache-npm | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- name: nodejs modules install | |
run: npm install | |
if: steps.cache-npm.outputs.cache-hit != 'true' | |
# | |
# run tests | |
# | |
- name: python unit test | |
run: pipenv run pytest -v | |
- name: cdk synth | |
run: | | |
export PATH=$PATH:$(pwd)/node_modules/.bin | |
pipenv run cdk synth | |
test -f cdk.out/manifest.json |