Skip to content

Add poetry for dependency management and packaging #63

Add poetry for dependency management and packaging

Add poetry for dependency management and packaging #63

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
tags: ['v*']
jobs:
# tests:
# timeout-minutes: 10
# strategy:
# fail-fast: false
# matrix:
# os: [ "ubuntu-latest" ]
# python-version: [ "3.11" ]
# runs-on: "${{ matrix.os }}"
# steps:
# - name: Check out repository
# uses: actions/checkout@v3
# - uses: ./.github/actions/setup
# with:
# python-version: "${{ matrix.python-version }}"
# venv-id: "tests-${{ runner.os }}"
# - run: echo "$CDSAPIRC" > ~/.cdsapirc
# env:
# CDSAPIRC: ${{ secrets.CDSAPIRC }}
# shell: bash
# - name: Run tests
# run: |
# poetry run pytest -r a -v tests
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
imports-without-extras:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.11" ]
runs-on: "${{ matrix.os }}"
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
python-version: "${{ matrix.python-version }}"
venv-id: "imports-without-extras-${{ runner.os }}"
poetry-dependency-install-flags: "--only main"
- name: Check importable without extras
run: poetry run python scripts/test-install.py
# imports-without-extras:
# strategy:
# fail-fast: false
# matrix:
# os: [ "ubuntu-latest" ]
# python-version: [ "3.11" ]
# runs-on: "${{ matrix.os }}"
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# - uses: ./.github/actions/setup
# with:
# python-version: "${{ matrix.python-version }}"
# venv-id: "imports-without-extras-${{ runner.os }}"
# poetry-dependency-install-flags: "--only main"
# - name: Check importable without extras
# run: poetry run python scripts/test-install.py
#
# check-build:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# - uses: ./.github/actions/setup
# with:
# python-version: "3.11"
# venv-id: "check-build-${{ runner.os }}"
# run-poetry-install: false
# poetry-dependency-install-flags: "not used"
# - name: Build package
# run: |
# poetry build --no-interaction
# - name: Check build
# run: |
# tar -tvf dist/primap_visualisation_tool_stateless_app-*.tar.gz --wildcards '*primap_visualisation_tool_stateless_app/py.typed'