windowstests.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: Windows Tests
  2. on: [push, pull_request]
  3. jobs:
  4. windowstests:
  5. name: Windows
  6. strategy:
  7. matrix:
  8. group: [python, integrity]
  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.5
  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') }}
  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: Upgrade pip
  44. run: python -m pip install -U pip
  45. - name: Install pip deps
  46. run: pip install --upgrade -e ".[test]"
  47. - name: List kernels
  48. run: jupyter kernelspec list
  49. - name: List jlpm versions
  50. run: jlpm versions
  51. - name: List jlpm config
  52. run: jlpm config current
  53. - name: Run test ${{ matrix.group }}
  54. env:
  55. NAME: ${{ matrix.group }}
  56. run: cmd /E:ON /V:ON /C .\\scripts\\appveyor.cmd