Bump torch from 2.0.1 to 2.1.0 #14
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: | |
pull_request: | |
push: | |
tags: | |
- "**" | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python: | |
- 3.8 | |
- 3.9 | |
- "3.10" | |
- "3.11" | |
platform: | |
- ubuntu-latest | |
- macos-latest | |
#- windows-latest Linux or macOS with Python ≥ 3.7 | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }}-dev | |
- name: Install tox | |
run: | | |
python -m pip install tox | |
- name: Run tests | |
run: tox | |
check: # This job does nothing and is only used for the branch protection | |
if: always() | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} | |
release: | |
needs: | |
- check | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install tox | |
run: | | |
python -m pip install tox | |
- name: Release | |
run: tox -e release | |
env: | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |