Skip to content

Migrated and updated packaging strategy and CI/CD integrations #3

Migrated and updated packaging strategy and CI/CD integrations

Migrated and updated packaging strategy and CI/CD integrations #3

name: poetry
on: [push, pull_request]
jobs:
poetry-packaging:
name: (${{ matrix.python-version }}, ${{ matrix.os }}, poetry-packagingpeo)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2
virtualenvs-create: true
virtualenvs-in-project: false
- name: Install dependencies
run: poetry install
- name: Run tests
run: |
poetry install -E 'test'
poetry run pytest sapicore/
poetry-packaging-dev:
name: (${{ matrix.python-version }}, ${{ matrix.os }}, "poetry-packaging-dev")
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2
virtualenvs-create: true
virtualenvs-in-project: false
- name: Install dependencies
run: poetry install -E "dev"
- name: Poetry version
run: |
poetry --version
- name: Run tests
run: |
poetry run pytest sapicore/