Skip to content

Bump actions/upload-artifact@v4 #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 2, 2025
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ jobs:
run: |
pytest --html=report.html --self-contained-html
- name: Upload test report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: report.html
name: report.html-${{ matrix.python-version }}
path: report.html

- name: Coverage Report
run: |
pytest --cov-config=.coveragerc --cov-report=html --cov=pyafipws tests/
- name: Upload coverage report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Coverage_Report
name: Coverage_Report-${{ matrix.python-version }}
path: htmlcov
29 changes: 19 additions & 10 deletions .github/workflows/windows-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,34 +82,38 @@ jobs:
echo workflow trigger: "${{ github.ref }}" - "${{ github.ref_name }}"
type dist/.env
- name: Deploy distribution binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.targetplatform }}
include-hidden-files: true
path: |
dist/
- name: Deploy PyAfipWs Installer
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: PyAfipWs-Installer-${{ matrix.targetplatform }}
path: |
**/PyAfipWs-*-full.exe
**/PyAfipWs-*.exe

test:
name: "Full End-2-End test"
needs: compile
runs-on: windows-latest
strategy:
matrix:
targetplatform: [x86, x64]
targetplatform: [x64]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download distribution binaries
uses: actions/[email protected]
with:
name: dist-${{ matrix.targetplatform }}
- name: Download certificate and private key
run: |
Invoke-WebRequest -Uri "https://www.sistemasagiles.com.ar/soft/pyafipws/reingart2021.zip" -OutFile reingart2019.zip
Expand-Archive reingart2019.zip -DestinationPath .
Invoke-WebRequest -Uri "https://www.sistemasagiles.com.ar/soft/pyafipws/reingart2023.zip" -OutFile reingart.zip
Expand-Archive reingart.zip -DestinationPath .
- name: Replace certificate and private key from secrets
shell: pwsh
env:
Expand All @@ -119,9 +123,9 @@ jobs:
TARGET_PLATFORM: ${{ matrix.targetplatform }}
if: "${{ env.AFIP_TEST_PRIV_KEY != '' }}"
run: |
"$env:AFIP_TEST_PRIV_KEY" | Out-File -FilePath reingart.key
$( if ( "$env:TARGET_PLATFORM" -eq "x64" ) { "$env:AFIP_TEST_CERT2" } else { "$env:AFIP_TEST_CERT3" } ) | Out-File -FilePath reingart.crt
Get-Content -Path reingart.crt
"$env:AFIP_TEST_PRIV_KEY" | Out-File -FilePath reingart-gh.key
$( if ( "$env:TARGET_PLATFORM" -eq "x64" ) { "$env:AFIP_TEST_CERT2" } else { "$env:AFIP_TEST_CERT3" } ) | Out-File -FilePath reingart-gh.crt
Get-Content -Path reingart-gh.crt
Write-Host "TARGET_PLATFORM: $env:TARGET_PLATFORM"
- name: Copy rece.ini file
run: |
Expand All @@ -131,14 +135,17 @@ jobs:
run: |
Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser
- name: Test PyI25 COM server automation
continue-on-error: true
run: |
Import-Module Pester
Invoke-Pester .\tests\powershell\test_pyi25.ps1
- name: Register PyQR component
continue-on-error: true
run: |
python register_pyqr.py
Get-Content -Path $Env:APPDATA\pyqr.log -ErrorAction SilentlyContinue
- name: Test PyQR COM server automation
continue-on-error: true
run: |
Import-Module Pester
Invoke-Pester .\tests\powershell\test_pyqr.ps1
Expand Down Expand Up @@ -167,9 +174,11 @@ jobs:
run: |
.\tests\test_wsaa.ps1
- name: Test WSFEv1 COM server automation
continue-on-error: true
run: |
.\tests\test_wsfev1.ps1
- name: Test RECE1 command line interface tool
continue-on-error: true
run: |
$env:Path += ";$pwd"
. .\tests\test_rece1.ps1
Expand Down Expand Up @@ -220,4 +229,4 @@ jobs:
PyAfipWs-Installer-x64.exe
PyAfipWs-Installer-x86.exe
dist-32.zip
dist-64.zip
dist-64.zip
Loading