Skip to content

Create poetry.lock

Create poetry.lock #84

name: Test osipi
on: [push]
jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
- name: Install Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: '1.8.3' # Specify the Poetry version you need
- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Update lock file
run: poetry lock --no-update
- name: Install dependencies
run: poetry install
- name: Test with pytest
run: poetry run pytest --junitxml=junit/test-results.xml --cov=dbdicom tests/
- name: Upload coverage to Codecov
if: runner.os == 'Windows'
uses: codecov/codecov-action@v3