arreglado cookie insegura #42
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@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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@v4 | |
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@v4 | |
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: Windows Integration tests with behave | |
if: ${{ success() && runner.os == 'Windows'}} | |
run: | | |
nohup python3 main.py run -c icconfig/config.json > nohup.out 2> null & | |
sleep 10 | |
sh behave.sh --format progress3 | |
- name: Not Windows Integration tests with behave | |
if: ${{ success() && runner.os != 'Windows'}} | |
run: | | |
nohup python3 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: upload output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{matrix.os}}-${{matrix.python-version}}-nohup.out | |
path: nohup.out | |
if: ${{ failure() }} | |
- name: upload errors | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{matrix.os}}-${{matrix.python-version}}-nohup.err | |
path: nohup.err | |
if: ${{ failure() }} | |
- name: Making Executables | |
uses: ./.github/actions/pyinstaller | |
- name: Upload windows Exe | |
if: ${{ success() && runner.os == 'Windows'}} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WTFinances.exe | |
path: ./pyinstaller/dist/WTFinances.exe | |
- name: Upload not windows executable | |
if: ${{ success() && runner.os != 'Windows'}} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WTFinances-${{matrix.os}} | |
path: ./pyinstaller/dist/WTFinances |