probando test de integracion #19
Workflow file for this run
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 workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Master Workflow | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install basic dependencies | |
uses: ./.github/actions/basic | |
- name: Test with pytest | |
run: | | |
pip install -r requirementstest.txt | |
python -m pytest --cov=src --cov-report html:html-${{matrix.os}}-${{matrix.python-version}} --doctest-modules --junitxml=junit/test-results-${{matrix.os}}-${{matrix.python-version}}.xml | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pytest-results-${{matrix.os}}-${{matrix.python-version}} | |
path: junit/test-results-${{matrix.os}}-${{ matrix.python-version }}.xml | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{always()}} | |
- name: Zip test result windows | |
if: ${{ success() && runner.os == 'Windows'}} | |
run: Compress-Archive html-${{matrix.os}}-${{matrix.python-version}}/ html-${{matrix.os}}-${{matrix.python-version}}.zip | |
- name: Zip test result not windows | |
if: ${{ success() && runner.os != 'Windows'}} | |
run: zip -r html-${{matrix.os}}-${{matrix.python-version}}.zip html-${{matrix.os}}-${{matrix.python-version}}/ | |
- name: Upload cobertura results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: html-${{matrix.os}}-${{matrix.python-version}}.zip | |
path: html-${{matrix.os}}-${{matrix.python-version}}.zip | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ success() }} | |
- name: Integration tests with behave | |
run: | | |
nohup python main.py run -c icconfig/config.json > nohup.out 2> nohup.err < /dev/null & | |
sleep 10 | |
sh behave.sh --format progress3 | |
kill -9 $(lsof -i:9090 -t) | |
- name: Making Executables | |
uses: ./.github/actions/pyinstaller | |
- name: Upload windows Exe | |
uses: actions/upload-artifact@v2 | |
with: | |
name: WTFinances.exe | |
path: ./pyinstaller/dist/WTFinances.exe | |
- name: Upload not windows executable | |
uses: actions/upload-artifact@v2 | |
with: | |
name: WTFinances-${{matrix.os}} | |
path: ./pyinstaller/dist/WTFinances |