windowstests.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: Windows Tests
  2. on: [push, pull_request]
  3. jobs:
  4. windowstests:
  5. name: Windows
  6. strategy:
  7. matrix:
  8. group: [integrity, python]
  9. fail-fast: false
  10. runs-on: windows-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Set up Python
  14. uses: actions/setup-python@v1
  15. with:
  16. python-version: 3.6
  17. - name: Set up Node
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: '12.x'
  21. - name: Cache pip on Windows
  22. uses: actions/cache@v1
  23. if: startsWith(runner.os, 'Windows')
  24. with:
  25. path: ~\AppData\Local\pip\Cache
  26. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', 'setup.py') }}
  27. restore-keys: |
  28. ${{ runner.os }}-pip-
  29. # Cache yarn
  30. - name: Get yarn cache directory path
  31. id: yarn-cache-dir-path
  32. run: echo "::set-output name=dir::$(yarn cache dir)"
  33. - name: Cache yarn
  34. uses: actions/cache@v1
  35. id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
  36. with:
  37. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  38. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  39. restore-keys: |
  40. ${{ runner.os }}-yarn-
  41. - name: Enable long paths
  42. run: powershell Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1
  43. - name: Install dependencies
  44. env:
  45. GROUP: ${{ matrix.group }}
  46. run: |
  47. cmd .\scripts\ci_install.bat
  48. - name: Run test ${{ matrix.group }}
  49. env:
  50. GROUP: ${{ matrix.group }}
  51. run: |
  52. cmd .\scripts\ci_script.bat