kopia lustrzana https://gitlab.com/gerbolyze/gerbonara
rodzic
0d967895af
commit
9e898ceefb
|
@ -1,8 +0,0 @@
|
|||
[run]
|
||||
branch = True
|
||||
source = gerber
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
omit =
|
||||
gerber/tests/*
|
|
@ -1,45 +0,0 @@
|
|||
name: pcb-tools
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [3.5, 3.6, 3.7, 3.8]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements-dev.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements-dev.txt
|
||||
- name: Run coverage
|
||||
run: |
|
||||
make test-coverage
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
file: ./coverage.xml
|
||||
flags: unittest
|
|
@ -15,11 +15,11 @@ build:archlinux:
|
|||
script:
|
||||
- git config --global --add safe.directory "$CI_PROJECT_DIR"
|
||||
- pip3 install --user wheel
|
||||
- python3 setup.py bdist_wheel
|
||||
- python3 setup.py sdist bdist_wheel
|
||||
artifacts:
|
||||
name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara"
|
||||
paths:
|
||||
- dist/*.whl
|
||||
- dist/*
|
||||
|
||||
#test:archlinux:
|
||||
# stage: test
|
||||
|
|
12
.pypirc
12
.pypirc
|
@ -1,12 +0,0 @@
|
|||
[distutils]
|
||||
index-servers =
|
||||
pypi
|
||||
testpypi
|
||||
|
||||
[pypi]
|
||||
username = __token__
|
||||
password = ${env.PYPI_TOKEN}
|
||||
|
||||
[testpypi]
|
||||
username = __token__
|
||||
password = ${env.TESTPYPI_TOKEN}
|
|
@ -0,0 +1,13 @@
|
|||
global-exclude *
|
||||
|
||||
include README.md
|
||||
include LICENSE
|
||||
include MANIFEST.in
|
||||
include setup.py
|
||||
graft gerbonara
|
||||
graft docs
|
||||
graft examples
|
||||
|
||||
prune gerbonara/tests
|
||||
prune **/__pycache__
|
||||
prune docs/_build
|
1
setup.py
1
setup.py
|
@ -30,6 +30,7 @@ setup(
|
|||
'Tracker': 'https://gitlab.com/gerbolyze/gerbonara/issues',
|
||||
},
|
||||
packages=find_packages(exclude=['tests']),
|
||||
exclude_package_data={'gerbonara': ['.gitignore']},
|
||||
install_requires=['click'],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
|
Ładowanie…
Reference in New Issue