run-tests.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: Tests
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. jobs:
  7. convert-model:
  8. runs-on: ubuntu-latest
  9. env:
  10. BLOOM_TESTING_WRITE_TOKEN: ${{ secrets.BLOOM_TESTING_WRITE_TOKEN }}
  11. timeout-minutes: 15
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up Python
  15. uses: actions/setup-python@v2
  16. with:
  17. python-version: 3.9
  18. - name: Cache dependencies
  19. uses: actions/cache@v2
  20. with:
  21. path: ~/.cache/pip
  22. key: Key-v1-py3.9-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
  23. - name: Install dependencies
  24. run: |
  25. python -m pip install --upgrade pip
  26. pip install -r requirements.txt
  27. - name: Test
  28. run: |
  29. python -m cli.convert_model --model bigscience/bloom-350m --output_path ./converted_model \
  30. --output_repo testing/test-bloomd-350m --use_auth_token $BLOOM_TESTING_WRITE_TOKEN
  31. # run-tests:
  32. # runs-on: ubuntu-latest
  33. # strategy:
  34. # matrix:
  35. # python-version: [ 3.7, 3.8, 3.9 ]
  36. # timeout-minutes: 15
  37. # steps:
  38. # - uses: actions/checkout@v2
  39. # - name: Set up Python
  40. # uses: actions/setup-python@v2
  41. # with:
  42. # python-version: ${{ matrix.python-version }}
  43. # - name: Cache dependencies
  44. # uses: actions/cache@v2
  45. # with:
  46. # path: ~/.cache/pip
  47. # key: Key-v1-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
  48. # - name: Install dependencies
  49. # run: |
  50. # python -m pip install --upgrade pip
  51. # pip install -r requirements.txt
  52. # pip install -r requirements-dev.txt
  53. # - name: Test
  54. # run: |
  55. # python -m cli.convert_model --model bigscience/bloom-350m --output_path ./converted_model \
  56. # --output_repo testing/test-bloomd-350m --use_auth_token $MY_WRITE_TOKEN