Skip to content

Research/artificial image dataset generation #289

Research/artificial image dataset generation

Research/artificial image dataset generation #289

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
tests:
name: "${{ matrix.python-version }} / ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
include:
- { python-version: 3.9, os: ubuntu-latest }
steps:
- name: Check out the repository
uses: actions/[email protected]
- name: Set up Python {{ "${{ matrix.python-version }}" }}
uses: actions/[email protected]
with:
python-version: "${{ matrix.python-version }}"
- name: Upgrade pip
run: |
pip install --upgrade pip
pip --version
- name: Install dependencies
run: |
pip install poetry
poetry --version
poetry install
- name: Run lint
run: |
poetry run flake8 src/plasticorigins/
- name: Run tests
run: |
cd models/
sh download_pretrained_base.sh
cd ..
poetry run coverage run -m pytest
poetry run coverage xml
rm models/mobilenet_v3_pretrained.pth