Skip to content

Commit e24bd8a

Browse files
committed
refactor ci and tests
1 parent 47f3d2b commit e24bd8a

28 files changed

+523
-749
lines changed

.appveyor.yml

-46
This file was deleted.

.github/workflows/github-actions.yml

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
name: build
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: ${{ matrix.name }}
6+
runs-on: ${{ matrix.os }}
7+
timeout-minutes: 30
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- name: 'check'
13+
python: '3.9'
14+
toxpython: 'python3.9'
15+
tox_env: 'check'
16+
os: 'ubuntu-latest'
17+
- name: 'docs'
18+
python: '3.9'
19+
toxpython: 'python3.9'
20+
tox_env: 'docs'
21+
os: 'ubuntu-latest'
22+
- name: 'py37 (ubuntu)'
23+
python: '3.7'
24+
toxpython: 'python3.7'
25+
python_arch: 'x64'
26+
tox_env: 'py37'
27+
os: 'ubuntu-latest'
28+
- name: 'py37 (windows)'
29+
python: '3.7'
30+
toxpython: 'python3.7'
31+
python_arch: 'x64'
32+
tox_env: 'py37'
33+
os: 'windows-latest'
34+
- name: 'py37 (macos)'
35+
python: '3.7'
36+
toxpython: 'python3.7'
37+
python_arch: 'x64'
38+
tox_env: 'py37'
39+
os: 'macos-latest'
40+
- name: 'py38 (ubuntu)'
41+
python: '3.8'
42+
toxpython: 'python3.8'
43+
python_arch: 'x64'
44+
tox_env: 'py38'
45+
os: 'ubuntu-latest'
46+
- name: 'py38 (windows)'
47+
python: '3.8'
48+
toxpython: 'python3.8'
49+
python_arch: 'x64'
50+
tox_env: 'py38'
51+
os: 'windows-latest'
52+
- name: 'py38 (macos)'
53+
python: '3.8'
54+
toxpython: 'python3.8'
55+
python_arch: 'x64'
56+
tox_env: 'py38'
57+
os: 'macos-latest'
58+
- name: 'py39 (ubuntu)'
59+
python: '3.9'
60+
toxpython: 'python3.9'
61+
python_arch: 'x64'
62+
tox_env: 'py39'
63+
os: 'ubuntu-latest'
64+
- name: 'py39 (windows)'
65+
python: '3.9'
66+
toxpython: 'python3.9'
67+
python_arch: 'x64'
68+
tox_env: 'py39'
69+
os: 'windows-latest'
70+
- name: 'py39 (macos)'
71+
python: '3.9'
72+
toxpython: 'python3.9'
73+
python_arch: 'x64'
74+
tox_env: 'py39'
75+
os: 'macos-latest'
76+
- name: 'py310 (ubuntu)'
77+
python: '3.10'
78+
toxpython: 'python3.10'
79+
python_arch: 'x64'
80+
tox_env: 'py310'
81+
os: 'ubuntu-latest'
82+
- name: 'py310 (windows)'
83+
python: '3.10'
84+
toxpython: 'python3.10'
85+
python_arch: 'x64'
86+
tox_env: 'py310'
87+
os: 'windows-latest'
88+
- name: 'py310 (macos)'
89+
python: '3.10'
90+
toxpython: 'python3.10'
91+
python_arch: 'x64'
92+
tox_env: 'py310'
93+
os: 'macos-latest'
94+
steps:
95+
- uses: actions/checkout@v3
96+
with:
97+
fetch-depth: 0
98+
- uses: actions/setup-python@v4
99+
with:
100+
python-version: ${{ matrix.python }}
101+
architecture: ${{ matrix.python_arch }}
102+
- name: install dependencies
103+
run: |
104+
python -mpip install --progress-bar=off -r ci/requirements.txt
105+
virtualenv --version
106+
pip --version
107+
tox --version
108+
pip list --format=freeze
109+
- name: test
110+
env:
111+
TOXPYTHON: '${{ matrix.toxpython }}'
112+
run: >
113+
tox -e ${{ matrix.tox_env }} -v

.github/workflows/pre-commit.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: pre-commit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre-commit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v3
11+
- uses: pre-commit/action@v3.0.0

.travis.yml

-49
This file was deleted.

CONTRIBUTING.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To set up `erpbrasil.edoc` for local development:
5151

5252
Now you can make your changes locally.
5353

54-
4. When you're done making changes, run all the checks, doc builder and spell checker with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ one command::
54+
4. When you're done making changes, run all the checks, doc builder and spell checker with `tox <https://tox.wiki/en/latest/installation.html>`_ one command::
5555

5656
tox
5757

@@ -76,8 +76,8 @@ For merging, you should:
7676
3. Add a note to ``CHANGELOG.rst`` about the changes.
7777
4. Add yourself to ``AUTHORS.rst``.
7878

79-
.. [1] If you don't have all the necessary python versions available locally you can rely on Travis - it will
80-
`run the tests <https://travis-ci.org/erpbrasil/erpbrasil.edoc/pull_requests>`_ for each change you add in the pull request.
79+
.. [1] If you don't have all the necessary python versions available locally, you can rely on GitHub Actions - it will
80+
`run the tests <https://github.com/erpbrasil/erpbrasil.edoc/actions>`_ for each change you add in the pull request.
8181
8282
It will be slower though ...
8383

MANIFEST.in

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ graft src
33
graft ci
44
graft tests
55

6+
include .github/workflows/github-actions.yml
7+
include .github/workflows/pre-commit.yml
8+
include .pre-commit-config.yaml
69
include .bumpversion.cfg
710
include .coveragerc
811
include .cookiecutterrc
@@ -13,8 +16,7 @@ include CHANGELOG.rst
1316
include CONTRIBUTING.rst
1417
include LICENSE
1518
include README.rst
16-
17-
include tox.ini .travis.yml .appveyor.yml
19+
include tox.ini
1820

1921
global-exclude *.py[cod] __pycache__/* *.so *.dylib
2022

README.rst

+5-13
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,10 @@ Overview
88
:stub-columns: 1
99

1010
* - tests
11-
- | |travis| |appveyor|
12-
| |codecov|
11+
- |codecov|
1312
* - package
14-
- | |version| |wheel| |supported-versions| |supported-implementations|
15-
| |commits-since|
16-
17-
.. |travis| image:: https://api.travis-ci.org/erpbrasil/erpbrasil.edoc.svg?branch=master
18-
:alt: Travis-CI Build Status
19-
:target: https://travis-ci.org/erpbrasil/erpbrasil.edoc
20-
21-
.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/erpbrasil/erpbrasil.edoc?branch=master&svg=true
22-
:alt: AppVeyor Build Status
23-
:target: https://ci.appveyor.com/project/erpbrasil/erpbrasil.edoc
13+
- |version| |wheel| |supported-versions| |supported-implementations|
14+
|commits-since|
2415

2516
.. |codecov| image:: https://codecov.io/github/erpbrasil/erpbrasil.edoc/coverage.svg?branch=master
2617
:alt: Coverage Status
@@ -61,7 +52,7 @@ https://erpbrasil.github.io/
6152
Créditos
6253
========
6354

64-
Esta é uma biblioteca criada atravês do esforço de das empresas:
55+
Esta é uma biblioteca criada através do esforço das empresas:
6556

6657
* Akretion https://akretion.com/pt-BR/
6758
* KMEE https://www.kmee.com.br
@@ -82,6 +73,7 @@ Para permitir que a instalação do seu ERP cresça somente com a necessidade
8273
do cliente é possível instalar as dependências da biblioteca de forma opcional:
8374

8475
::
76+
8577
pip install erpbrasil.edoc
8678

8779
# Documentos do Sefaz

0 commit comments

Comments
 (0)