Skip to content

[pre-commit.ci] pre-commit suggestions (#32) #77

[pre-commit.ci] pre-commit suggestions (#32)

[pre-commit.ci] pre-commit suggestions (#32) #77

name: Install pkg
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pkg-install:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# max-parallel: 6
matrix:
# PyTorch 1.5 is failing on Win and bolts requires torchvision>=0.5
os: [ubuntu-20.04, macOS-11 , windows-2019] #
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install check-manifest "twine==4.0.*" setuptools wheel
- name: Create package
run: |
check-manifest
# python setup.py check --metadata --strict
python setup.py sdist
- name: Check package
run: |
twine check dist/*
python setup.py clean