-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
18,294 additions
and
9,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Linux Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Pruebitas en Linux | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Prepare Environment | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
- name: Lint | ||
run: | | ||
make lint | ||
- name: Tests | ||
run: | | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Windows Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Pruebitas en Win | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Prepare Environment | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
- name: Lint | ||
run: | | ||
pycodestyle pireal | ||
flake8 pireal | ||
- name: Tests | ||
run: | | ||
pytest tests -v --cov pireal.core --cov-report term-missing |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,56 @@ | ||
PYTEST = pytest tests | ||
|
||
help: | ||
@echo "test -- run tests" | ||
@echo "test-gui -- run tests for GUI" | ||
@echo "test-integration -- run integration tests" | ||
@echo "pep8 -- run pycodestyle" | ||
@echo "flake8 -- run flake8" | ||
@echo "lint -- run pycodestyle and flake8" | ||
@echo "dist -- run python setup.py sdist" | ||
@echo "deb -- build a .deb package" | ||
@echo "rc -- buil resources" | ||
|
||
rc: | ||
pyrcc5 pireal/resources/resources.qrc -o pireal/resources.py | ||
|
||
clean: | ||
rm -rf `find -name "*pyc"` | ||
rm -rf `find -name "*pyo"` | ||
rm -rf `find -name "*qmlc"` | ||
rm -rf .pybuild/ | ||
rm -rf debian/debhelper-build-stamp | ||
rm -rf debian/.debhelper | ||
rm -rf debian/files | ||
rm -rf debian/pireal/ | ||
rm -rf debian/pireal.postinst.debhelper | ||
rm -rf debian/pireal.prerm.debhelper | ||
rm -rf debian/pireal.substvars | ||
rm -rf pireal.egg-info | ||
rm -rf build/ | ||
|
||
pep8: | ||
pycodestyle pireal | ||
|
||
flake8: | ||
flake8 pireal | ||
|
||
lint: pep8 flake8 | ||
|
||
test: | ||
pytest -v tests --cov src.core.relation --cov src.core.interpreter --cov src.core.file_manager --cov src.core.cliparser --cov src.core.pfile --cov-report term-missing | ||
@$(PYTEST) -v --cov pireal.core --cov pireal.interpreter --cov-report term-missing -m "not integration and not gui" --ignore=tests/gui | ||
|
||
test-gui: | ||
@$(PYTEST) -v -m gui | ||
|
||
test-integration: | ||
@$(PYTEST) -v -m integration --ignore=tests/gui | ||
|
||
dist: clean | ||
rm -rf /tmp/pireal/ | ||
mkdir /tmp/pireal/ | ||
cp -R * /tmp/pireal/ | ||
(cd /tmp; tar -zcf pireal.tar.gz pireal/) | ||
mv /tmp/pireal.tar.gz ./pireal_`./pireal --version`.orig.tar.gz | ||
python setup.py sdist | ||
mv dist/* ../ | ||
|
||
deb: | ||
debuild -b -uc -us | ||
|
||
install: | ||
python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.