Skip to content

Commit

Permalink
Update requirements to fix tests. (#133)
Browse files Browse the repository at this point in the history
* clean up tests

* disable macos and windows tests until github actions is fixed
  • Loading branch information
ieee8023 committed May 1, 2023
1 parent 39c1739 commit 3dbb074
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI Test
name: XRV CI Tests

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -11,13 +11,15 @@ on:
- 'torchxrayvision/**'
- 'tests/**'
- 'setup.py'
- 'requirements*.txt'
- '.github/**'
pull_request:
branches: [ master ]
paths:
- 'torchxrayvision/**'
- 'tests/**'
- 'setup.py'
- 'requirements*.txt'
- '.github/**'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand All @@ -29,37 +31,28 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [3.8]
python-version: ['3.8']
torch-version: [1.10.0, 2.0.0]
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest] # only run ubuntu for now because the other ones fail for no reason, macos-latest, windows-latest]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
echo "Installing requirements.txt"
pip install -r requirements.txt
python -m pip install pytest
- name: Install Dev dependencies
run: |
python -m pip install --upgrade pip
echo "Installing requirements-dev.txt"
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install library
- name: Install XRV library
run: |
echo "Installing library"
python -m pip install -e .
pip install -e .
- name: Install torch version
run: |
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ numpy>=1
pandas>=1
requests>=1
pillow>=5.3.0
imageio

0 comments on commit 3dbb074

Please sign in to comment.