refactor loader API to Loader.py #16
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| miniconda: | |
| name: Miniconda ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest", "windows-latest"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| activate-environment: env | |
| environment-file: environment.yml | |
| auto-activate-base: false | |
| - shell: bash -l {0} | |
| run: | | |
| conda info | |
| conda list | |
| - name: Lint | |
| shell: bash -l {0} | |
| run: | | |
| conda install flake8 | |
| python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| - name: Run pytest | |
| shell: bash -l {0} | |
| run: | | |
| conda install pytest | |
| pytest | |