change data paths #279
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: 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 |