Skip to content

Commit

Permalink
Use github actions for running test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekram committed Feb 6, 2022
1 parent 0507d01 commit e51a464
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Tests
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
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 -e ".[tests]"
- name: Run Tests
run: |
pytest --cov-report term --cov-config .coveragerc --cov=pyas2 --black --pylama pyas2
- name: Generate CodeCov Report
run: |
pip install codecov
codecov
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
"Topic :: Security :: Cryptography",
"Topic :: Communications",
],
Expand Down

0 comments on commit e51a464

Please sign in to comment.