You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. name: Test installation and doccano commands
  2. on:
  3. schedule:
  4. - cron: "15 22 * * *"
  5. jobs:
  6. test:
  7. runs-on: ${{ matrix.os }}
  8. strategy:
  9. matrix:
  10. os: [macos-latest, ubuntu-latest, windows-latest]
  11. python-version: ["3.8", "3.9", "3.10"]
  12. steps:
  13. - name: Set up Python
  14. uses: actions/setup-python@v4
  15. with:
  16. python-version: ${{ matrix.python-version }}
  17. - name: Enabling JSON1 extension on SQLite
  18. if: ${{ startsWith(matrix.os, 'windows') && matrix.python-version == '3.8' }}
  19. shell: bash
  20. run: |
  21. export VERSION=`python -V | cut -f2 -d " "`
  22. curl -LO https://www.sqlite.org/2022/sqlite-dll-win64-x64-3390300.zip
  23. unzip sqlite-dll-win64-x64-3390300.zip
  24. mv sqlite3.dll /c/hostedtoolcache/windows/Python/$VERSION/x64/DLLs/
  25. - name: Test installation
  26. run: pip install doccano
  27. - name: Test doccano init command
  28. run: doccano init
  29. - name: Test doccano createuser command
  30. run: doccano createuser --username admin --password pass