run-tests.yaml 1.8 KB

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