From 6f6eebb536e01ffba71d71327a31fc02a2fbf499 Mon Sep 17 00:00:00 2001 From: Mostafa Farrag Date: Tue, 24 Sep 2024 14:45:16 +0200 Subject: [PATCH] add pypi workflow --- .github/workflows/pypi-deployment.yml | 60 ++++----------------------- 1 file changed, 9 insertions(+), 51 deletions(-) diff --git a/.github/workflows/pypi-deployment.yml b/.github/workflows/pypi-deployment.yml index 7aaaec7..a6396af 100644 --- a/.github/workflows/pypi-deployment.yml +++ b/.github/workflows/pypi-deployment.yml @@ -15,63 +15,21 @@ jobs: python-version: ${{ matrix.python-version }} architecture: x64 - - name: Install GDAL - run: | - python -m pip install --upgrade pip - pip install --no-cache-dir Cython - pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL==3.9.0 - - - name: Test GDAL installation - run: | - python -c "from osgeo import gdal" - gdalinfo --version - - - name: Install dependencies - run: | - pip install .[dev] - - - name: Run tests - run: | - pytest -sv -m "not plot" --ignore=tests/dataset/test_plot.py - - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 - - optional-packages: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ ubuntu-latest] - python-version: ["3.11", "3.12"] - env: - OS: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - name: Install Poetry + uses: snok/install-poetry@v1 with: - python-version: ${{ matrix.python-version }} - architecture: x64 - - - name: Install GDAL - run: | - pip install --upgrade pip - pip install --no-cache-dir Cython - pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL==3.9.0 - - - name: Test GDAL installation - run: | - python -c "from osgeo import gdal" - gdalinfo --version + version: 1.1.15 + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Install dependencies run: | - pip install .[dev,viz] + poetry install --no-interaction - - name: Run tests and generate coverage report + - name: Run tests run: | - pytest -v --cov=pyramids --cov-report=xml + poetry run pytest - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v3