Look up yapf version and only add the verify argument if needed #165
Workflow file for this run
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| # continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| emacs_version: | |
| - 27.1 | |
| - 27.2 | |
| - 28.1 | |
| - 28.2 | |
| - 29.2 | |
| - 29.3 | |
| - 29.4 | |
| # - snapshot | |
| python_version: | |
| # - 3.6 | |
| # - 3.7 | |
| - 3.8 | |
| - 3.9 | |
| - "3.10" | |
| - 3.11 | |
| - 3.12 | |
| steps: | |
| # Checkout | |
| - uses: actions/checkout@v4 | |
| # Emacs | |
| - name: Set up Emacs ${{ matrix.emacs_version }} | |
| uses: purcell/setup-emacs@master | |
| with: | |
| version: ${{ matrix.emacs_version }} | |
| # Cask | |
| - name: Set up Cask | |
| uses: conao3/setup-cask@master | |
| with: | |
| version: 'snapshot' | |
| # Python | |
| - name: Set up Python ${{ matrix.python_version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version : ${{ matrix.python_version }} | |
| check-latest: true | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt --upgrade | |
| pip install -r requirements-rpc.txt --upgrade | |
| pip install -r requirements-dev.txt --upgrade | |
| if [[ ${{ matrix.python_version }} > 3.5 ]] ; then | |
| pip install -r requirements-rpc3.6.txt --upgrade ; | |
| fi | |
| if [[ ${{ matrix.python_version }} < 3 ]] ; then | |
| pip install -r requirements-dev2.txt --upgrade ; | |
| fi | |
| pip install coveralls | |
| python -m virtualenv $HOME/.virtualenvs/elpy-test-venv | |
| # Run tests | |
| - name: Run Emacs tests | |
| uses: nick-invision/retry@v3 | |
| with: | |
| timeout_minutes: 10 | |
| max_attempts: 5 | |
| command: cask install ; PYTHONPATH="`pwd`" cask exec ert-runner --reporter ert+duration | |
| - name: Run Python tests | |
| run: nosetests | |
| # Coveralls | |
| - name: Coveralls | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| if [[ ${{ matrix.python_version }} > 3 ]] ; then | |
| coverage run -m nose.__main__ | |
| coveralls --service=github ; | |
| fi |