Skip to content

Commit

Permalink
Merge pull request #44 from Thomasbehan/M-3.1
Browse files Browse the repository at this point in the history
Model 3.1 Release 🎨 πŸ“ πŸ› ⚑ πŸ”§
  • Loading branch information
Thomasbehan authored Jun 3, 2024
2 parents ac0436b + 5c1c390 commit 603967d
Show file tree
Hide file tree
Showing 63 changed files with 2,467 additions and 2,081 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [Thomasbehan]
86 changes: 43 additions & 43 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: Automated Testing

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [ "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e ".[testing]"
python setup.py install
- name: Download latest model from GitHub Releases
run: |
curl -L -o models/skinvestigator-sm.tflite https://github.com/Thomasbehan/SkinVestigatorAI/releases/download/0.1.5/skinvestigator-sm.tflite
- name: Download some data for testing
run: |
python commands/run_data_scraper.py -p 2
- name: Lint with ruff
run: |
ruff check
- name: Test with pytest
run: |
name: Automated Testing

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [ "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e ".[testing]"
python setup.py install
- name: Download latest model from GitHub Releases
run: |
curl -L -o models/LesNet.keras https://github.com/Thomasbehan/LesNet/releases/download/3.1.0/LesNet.keras
- name: Download some data for testing
run: |
python commands/run_data_scraper.py -p 2
- name: Lint with ruff
run: |
ruff check
- name: Test with pytest
run: |
python -m pytest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ test
*.h5
**/*.tflite
*.tflite
**/*.keras
*.keras
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*

# Get the latest available model
RUN curl -L -o models/skinvestigator-sm.tflite https://github.com/Thomasbehan/SkinVestigatorAI/releases/download/0.1.5/skinvestigator-sm.tflite
RUN curl -L -o models/LesNet.keras https://github.com/Thomasbehan/LesNet/releases/download/3.1.0/LesNet.keras

# Add a new user to avoid running the application as root
RUN useradd -ms /bin/bash appuser
Expand Down
Loading

0 comments on commit 603967d

Please sign in to comment.