Skip to content

update flake8 config (#86) #361

update flake8 config (#86)

update flake8 config (#86) #361

name: Python Package using Conda
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9]
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
defaults:
# for micromamba
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags.
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
channel-priority: strict
mamba-version: "*"
activate-environment: convml_tt
auto-update-conda: false
python-version: ${{ matrix.python-version }}
- name: Set up conda environment
run: |
mamba install "torchvision>=0.4.0" pytorch cpuonly -c conda-forge -c pytorch
- run: conda --version
- run: which python
- name: install convml_tt
run: |
python -m pip install ".[test]"
- name: Test with pytest
run: |
pytest