Installation test #1031
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: Installation test | |
on: | |
schedule: | |
- cron: '00 18 * * *' | |
jobs: | |
smoke-test: | |
name: Basic test for (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-13", "macos-latest", "windows-latest"] | |
python-version: ["3.9", "3.10", "3.11"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install PyTorch | |
run: conda install pytorch torchvision -c pytorch | |
- name: Install TinyNeuralNetwork | |
run: python setup.py install | |
- name: Basic imports | |
run: | | |
cd tests | |
python import_test.py -v |