-
Notifications
You must be signed in to change notification settings - Fork 490
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 #915 from deniszh/DZ-tests-GHA
Switching x86 arch tests to Github Actions
- Loading branch information
Showing
3 changed files
with
92 additions
and
42 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,74 @@ | ||
name: "Run tests for amd64 architecture" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- name: "Python 2.7" | ||
python-version: '2.7' | ||
toxenv: "py27" | ||
- name: "Pypy 2.7" | ||
python-version: 'pypy-2.7' | ||
toxenv: 'pypy' | ||
- name: "Python 3.6" | ||
python-version: '3.6' | ||
toxenv: 'py36' | ||
- name: "Pypy 3.6" | ||
python-version: 'pypy-3.6' | ||
toxenv: 'pypy3' | ||
- name: "Python 3.7" | ||
python-version: '3.7' | ||
toxenv: 'py37' | ||
- name: "Pypy 3.7" | ||
python-version: 'pypy-3.7' | ||
toxenv: 'pypy3' | ||
- name: "Python 3.8" | ||
python-version: '3.8' | ||
toxenv: 'py38' | ||
- name: "Python 3.9-pyhash" | ||
python-version: '3.9' | ||
toxenv: 'py39-pyhash' | ||
- name: "Python 3.9" | ||
python-version: '3.9' | ||
toxenv: 'py39' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Tests with tox | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
run: | | ||
tox | ||
- name: Linting | ||
if: ${{ matrix.python-version==3.9 }} | ||
env: | ||
TOXENV: lint | ||
run: | | ||
tox | ||
- name: Run Codecov | ||
if: ${{ matrix.python-version==3.9 }} | ||
env: | ||
TOXENV: lint | ||
run: | | ||
pip install codecov | ||
codecov | ||
- name: Upload coverage to Codecov | ||
if: ${{ matrix.python-version==3.9 }} | ||
uses: codecov/codecov-action@v1 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tox] | ||
envlist = | ||
py{27,35,36,37,38,py,py3}{,-pyhash}, | ||
py{27,36,37,38,39,py,py3}{,-pyhash}, | ||
lint, | ||
benchmark | ||
|
||
|