Skip to content

Suggested workflow for testing a build on a CI service? #166

@madig

Description

@madig

I want to install a wheel package and have the test suit run over it, like tox does. The purpose is to test that an installed package actually works.

I have a GitLab CI script like this:

build:
    stage: build
    script:
        - pip install poetry
        - poetry build
    artifacts:
        name: "${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}"
        paths:
            - dist/*.whl

test:
    stage: test
    script:
        - pip install dist/*.whl pytest ufo2ft
        - cd tests && pytest

The test stage receives dist/*.whl, which we can install. I have to manually specify the development dependencies though. Doable, but not very elegant. Is there a better workflow with poetry?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions