Skip to content

Commit 1c5f203

Browse files
authored
Merge pull request #233 from asherf/gha
Add github actions.
2 parents 372cbdb + 02dc0bc commit 1c5f203

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/main.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: main
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
test:
11+
runs-on: "ubuntu-latest"
12+
timeout-minutes: 30
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"]
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
pip install -U setuptools
28+
pip install -U tox codecov tox-gh-actions
29+
- name: Log python & pip versions
30+
run: |
31+
python --version
32+
pip --version
33+
- name: Run unit tests
34+
run: tox
35+
linting:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: actions/setup-python@v2
40+
with:
41+
python-version: 3.8
42+
- name: Install dependencies
43+
run: |
44+
pip install -U setuptools
45+
pip install -U tox
46+
- run: tox -e flake8

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ envlist =
55
flake8
66
skip_missing_interpreters = True
77

8+
[gh-actions]
9+
python =
10+
3.6: py36-{base,cryptography-only,pycryptodome-norsa,compatibility}
11+
3.7: py37-{base,cryptography-only,pycryptodome-norsa,compatibility}
12+
3.8: py38-{base,cryptography-only,pycryptodome-norsa,compatibility}
13+
3.9: py39-{base,cryptography-only,pycryptodome-norsa,compatibility}
14+
pypy3: pypy3-{base,cryptography-only,pycryptodome-norsa,compatibility}
15+
816
[testenv:basecommand]
917
commands =
1018
pip --version

0 commit comments

Comments
 (0)