Pin all github-actions to specific commit shas #216
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mac tests | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| build: | |
| name: Mac Py${{ matrix.PYTHON_VERSION }} | |
| runs-on: macos-latest | |
| env: | |
| CI: 'true' | |
| OS: 'macos' | |
| PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| PYTHON_VERSION: ['3.8', '3.7', '3.6', '2.7'] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1 | |
| with: | |
| path: ~/Library/Caches/pip | |
| key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} | |
| restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- | |
| - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | |
| - uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2 | |
| with: | |
| python-version: ${{ matrix.PYTHON_VERSION }} | |
| architecture: 'x64' | |
| - name: Create Jedi environment for testing | |
| if: matrix.PYTHON_VERSION != '2.7' | |
| run: | | |
| python3 -m venv /tmp/pyenv | |
| /tmp/pyenv/bin/python -m pip install loghub | |
| - run: python -m pip install --upgrade pip setuptools | |
| - run: pip install -e .[all,test] | |
| - run: py.test -v test/ |