Skip to content

Commit 26520b2

Browse files
Add Github Actions (#107)
* Add GitHub action support * Remove python 3.5 from matrix, install kerberos dev on linux, fix tox * Use gh token during code coverage * Fix coveralls upload Co-authored-by: Dmitry Romanenko <[email protected]>
1 parent ca2a3d1 commit 26520b2

File tree

3 files changed

+56
-30
lines changed

3 files changed

+56
-30
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Builds
2+
on:
3+
push:
4+
branches: '*'
5+
pull_request:
6+
branches: '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
env:
12+
TOX_ENV: py${{ matrix.python-version}}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
clean: true
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
architecture: 'x64'
28+
- name: Install Dependencies (Linux)
29+
run: sudo apt-get install libkrb5-dev
30+
if: matrix.os == 'ubuntu-latest'
31+
- name: Install dependencies
32+
run: |
33+
pip install --upgrade setuptools pip tox tox-gh-actions coveralls
34+
pip freeze
35+
- name: Run the tests
36+
run: tox
37+
- name: Upload coverage data to coveralls.io
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
COVERALLS_PARALLEL: true
41+
run: coveralls --service=github
42+
- name: Code coverage
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: |
46+
coveralls --finish

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

tox.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1+
12
[tox]
2-
envlist = py35,py36,py37,py38,py39
3+
envlist = py36, py37, py38, py39
4+
5+
[gh-actions]
6+
python =
7+
3.6: py36
8+
3.7: py37
9+
3.8: py38
10+
3.9: py39
311

412
[testenv]
513
deps =
614
coverage
715
mock
816
py36: cryptography<=3.2.2 # requests-kerberos pulls in newer crypt that requires rust compiler on 3.6
917
requests
18+
pywinrm[kerberos]
1019
requests-kerberos
1120
requests_mock
1221
commands = coverage run --source=yarn_api_client setup.py test

0 commit comments

Comments
 (0)