From 3bfe4a3dbae1c78ca05f78cb0911634d4e96b8ee Mon Sep 17 00:00:00 2001 From: Bruno Davi Date: Tue, 29 Apr 2025 20:31:10 -0300 Subject: [PATCH] chore: create ci/cd to python-test.yml --- .github/workflows/python-test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/python-test.yml diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml new file mode 100644 index 0000000..c8dcc19 --- /dev/null +++ b/.github/workflows/python-test.yml @@ -0,0 +1,30 @@ +name: Testes com PDM + +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11'] + + steps: + - uses: actions/checkout@v4 + + - name: Configurar PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: ${{ matrix.python-version }} + cache: true + + - name: Instalar dependências da aplicação + run: pdm install + + - name: Instalar dependências de teste + run: pdm install -G test + + - name: Executar testes + run: pdm test -k 'not action'