Skip to content

Commit 9b713d4

Browse files
committed
build(ci): add GitHub actions
1 parent 6b8eb5d commit 9b713d4

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/python.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- $default-branch
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: ['3.8', '3.9', '3.10']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
architecture: x64
25+
- run: pip install -r requirements_ci.txt
26+
- run: git clone https://github.com/PyCQA/pycodestyle ../pycodestyle
27+
- run: cd ../pycodestyle && python setup.py build && cd -
28+
- run: git clone https://github.com/mbdevpl/argunparse ../argunparse
29+
- run: cd ../argunparse && pip install -r test_requirements.txt && python setup.py build && cd -
30+
- run: git clone https://github.com/python-semver/python-semver ../semver
31+
- run: cd ../semver && python setup.py build && cd -
32+
- run: python -m coverage run --branch --source . -m unittest -v
33+
# - run: LOGGING_LEVEL=critical python -m coverage run --append --branch --source . -m unittest -v test.test_version
34+
- run: python -m coverage report --show-missing
35+
- run: codecov

0 commit comments

Comments
 (0)