Skip to content

Try to make a more illustrative example for LineProfiler (#57) #23

Try to make a more illustrative example for LineProfiler (#57)

Try to make a more illustrative example for LineProfiler (#57) #23

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ipython pandas
pip install .[test]
- name: Build package
run: python setup.py bdist
- name: Test
run: |
python -c 'import pytorch_memlab'
pytest test/test_mem_reporter.py