Skip to content

fix:(deps): update transformers requirement from <4.46.0,>=4.42.3 to >=4.42.3,<4.47.0 #408

fix:(deps): update transformers requirement from <4.46.0,>=4.42.3 to >=4.42.3,<4.47.0

fix:(deps): update transformers requirement from <4.46.0,>=4.42.3 to >=4.42.3,<4.47.0 #408

name: Test (and release)
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
env:
python-version: 3.9
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Run tests
uses: ./.github/actions/test
with:
python-version: ${{ env.python-version }}
release:
runs-on: ubuntu-latest
concurrency: release
needs: test
if: ${{ github.ref == 'refs/heads/main' }}
steps:
# Checkout action is required for token to persist
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_BOT }}
- name: Python Semantic Release
uses: relekang/[email protected]
with:
github_token: ${{ secrets.RELEASE_BOT }}
# Remember to copy the tool.semantic_release section from pyproject.toml
# as well
# To enable pypi,
# 1) Set upload_to_pypi to true in pyproject.toml and
# 2) Set the pypi_token in the repo
# 3) Uncomment the two lines below
repository_username: __token__
repository_password: ${{ secrets.PYPI_API_TOKEN }}