-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1851 from jorgenschaefer/switch-to-github-actions
Switch to github actions
- Loading branch information
Showing
8 changed files
with
96 additions
and
113 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
emacs_version: | ||
# - 24.1 | ||
# - 24.2 | ||
# - 24.3 | ||
# - 24.4 | ||
# - 24.5 | ||
# - 25.1 | ||
# - 25.2 | ||
# - 25.3 | ||
- 26.1 | ||
- 26.2 | ||
- 26.3 | ||
- 27.1 | ||
# - snapshot | ||
python_version: | ||
- 2.7 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v2 | ||
# 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@v2 | ||
with: | ||
python-version : ${{ matrix.python_version }} | ||
- 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 Python tests | ||
run: nosetests | ||
- name: Run Emacs tests | ||
uses: nick-invision/retry@v2 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
command: cask install ; PYTHONPATH="`pwd`" cask exec ert-runner --reporter ert+duration | ||
# Coveralls | ||
- name: Coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
if [[ ${{ matrix.python_version }} > 3 ]] ; then | ||
coverage run -m nose.__main__ | ||
coveralls ; | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ mock==3.0.5 | |
nose==1.3.7 | ||
twine==1.15.0 | ||
wheel==0.34.2 | ||
virtualenv==20.1.0 |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.