From 54470b5683fc2b282a523299eb2b687441826e47 Mon Sep 17 00:00:00 2001 From: HanslettTheDev Date: Tue, 3 Oct 2023 14:14:06 +0100 Subject: [PATCH] feat: added a comprehensive test for the module Signed-off-by: HanslettTheDev --- .github/workflows/deploy-package.yml | 34 ++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index 2b03fe002..ec992e9c5 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -39,7 +39,33 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ - - name: Test PyAfipWs Upload - run: | - pip install -i https://test.pypi.org/simple/ PyAfipWs - \ No newline at end of file + + + test: + name: "Test Deployed PyAfipWs Package" + needs: build + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.9, 3.11] + + 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 PyAfipWs from PyPi + run: | + pip install -i https://test.pypi.org/simple/ PyAfipWs + - name: Download certificate and private key + run: | + wget "https://www.sistemasagiles.com.ar/soft/pyafipws/reingart2021.zip" -O reingart2019.zip + unzip reingart2019.zip + - name: Test WSAA servers + run: | + python -m pyafipws.wsaa + - name: Test WSFEV1 + run: | + python -m pyafipws.wsfev1 --dummy \ No newline at end of file