Skip to content

Update workflows: add node-version:none and address Node.js 20 deprec… #2

Update workflows: add node-version:none and address Node.js 20 deprec…

Update workflows: add node-version:none and address Node.js 20 deprec… #2

Workflow file for this run

# Copyright the Hyperledger Fabric contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
node-version: 'none'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt pytest pytest-asyncio
- name: Run tests
run: |
python -m pytest -q