Little cleanup for new purpose of the repo #16
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# Run for all PRs | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
name: Test on ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
- os: macos-11 | |
- os: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install tests dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: run Python tests | |
run: python -m tox | |
env: | |
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu | |
# check that we can build Python wheels on any Python version | |
python-build: | |
runs-on: ubuntu-20.04 | |
name: check Python build | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox wheel | |
- name: python build tests | |
run: tox -e build-python | |
env: | |
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu |