Skip to content

Add requests library #69

Add requests library

Add requests library #69

Workflow file for this run

name: Python package
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 8
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
os: [macos-13, windows-latest, ubuntu-latest]
include:
- pytorch-version: 1.4.0
- pytorch-version: 1.7.1
python-version: 3.9
- pytorch-version: 1.11.0
python-version: '3.10'
- pytorch-version: 1.13.0
python-version: 3.11
- pytorch-version: 2.0.0
python-version: 3.11
os: macos-13
- pytorch-version: 2.0.0
python-version: 3.11
os: windows-latest
- pytorch-version: 2.2.0
python-version: 3.12
- pytorch-option: '+cpu'
- pytorch-option: ''
os: macos-13
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy -U
pip install torch==${{ matrix.pytorch-version }}${{ matrix.pytorch-option }} -f https://download.pytorch.org/whl/torch_stable.html
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest test -s -vv