Updating notebook to latest dLux #85
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
# Author : Jordan Dennis | |
# Date : 29/06/2022 | |
# Title : tests.yml | |
# Description : Automatically runs tests when branches are merged. | |
# The tests that are run can be found in the tests directory. | |
name: automated tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@main | |
- name: python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
architecture: x64 | |
- name: install environment | |
run: | | |
python -m pip install --upgrade pip | |
pip install --quiet pytest | |
pip install --quiet -r requirements.txt | |
pip install --quiet . | |
# ===== Tests ===== | |
- name: dataset loader tests | |
run: pytest --quiet tests/test_ImageDataset.py | |