chore: release 081 (#764) #3167
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: CI | |
on: [push] | |
env: | |
HOST: ${{ secrets.FINETUNER_HOST }} | |
JINA_AUTH_TOKEN: ${{ secrets.JINA_AUTH_TOKEN }} | |
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HF_HUB_ACCESS_TOKEN }} | |
jobs: | |
check-codestyle: | |
name: Check codestyle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install requirements | |
run: make init | |
- name: Lint with flake8, black and isort | |
run: make style | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install requirements | |
run: make init | |
- name: Run tests | |
run: make test | |
check-versions: | |
name: Check Python Versions | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [3.8, 3.9, '3.10'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setp up python version | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Test install | |
run: make install | |
# just for blocking the merge until all parallel core-test are successful | |
success-all-test: | |
needs: run-tests | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: technote-space/workflow-conclusion-action@v2 | |
- name: Check Failure | |
if: env.WORKFLOW_CONCLUSION == 'failure' | |
run: exit 1 | |
- name: Success | |
if: ${{ success() }} | |
run: echo "All Done" |