Skip to content

Merge pull request #17 from deeprave/develop #37

Merge pull request #17 from deeprave/develop

Merge pull request #17 from deeprave/develop #37

name: Test and Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10"]
poetry-version: ["1.6.1", "1.7.1"]
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup python and poetry
uses: abatilo/[email protected]
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ matrix.poetry-version }}
- name: install build dependencies
run: poetry install --with test,vault --without dev
- name: run the tests
run: |
poetry run pytest
- name: build package
run: poetry build
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/*
if-no-files-found: error