fix: requirements.txt to reduce vulnerabilities #55
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: Windows (latest) | |
on: [push] | |
permissions: | |
contents: read | |
jobs: | |
interactive-kvasir: # from interactive-kvasir.yml | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Interactive API - pytorch_kvasir_unet | |
run: | | |
pip install torch==1.13.1 | |
pip install torchvision==0.14.1 | |
python -m test.unittest.test_algorithms | |
cli: # from taskrunner.yml | |
needs: [interactive-kvasir] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Test TaskRunner API | |
run: | | |
python -m test.unittest.test_algorithms |