Skip to content

Commit

Permalink
Try again with Conda
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Oct 30, 2024
1 parent a19deb3 commit 5eab394
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,29 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version.flag }}
- name: Cache APT Packages
uses: awalsh128/cache-apt-pkgs-action@latest
# Setup Conda for Python and Pypy
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v2
with:
packages: gdal libsqlite3-mod-spatialite rasterio sqlite mariadb-server mariadb-client
version: 1.0
execute_install_scripts: true
environment-name: test_${{ matrix.python-version.flag }}
cache-environment: false
create-args: >-
${{ matrix.python-version.pkg_name }}
gdal
libgdal
libspatialite==5.0.1
proj==9.3.0
pyproj
condarc: |
channels:
- conda-forge
- defaults
channel_priority: strict
# Install MariaDB
- name: Install MariaDB
run: |
sudo apt-get install -y mariadb-server mariadb-client
# Config PostgreSQL
- name: Configure PostgreSQL
Expand Down Expand Up @@ -148,9 +161,9 @@ jobs:
# Run the test suite
- name: Run the tests
env:
SPATIALITE_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/mod_spatialite.so
PROJ_LIB: /usr/share/proj
PROJ_DATA: /usr/share/proj
SPATIALITE_LIBRARY_PATH: /home/runner/micromamba/envs/test_${{ matrix.python-version.flag }}/lib/mod_spatialite.so
PROJ_DATA: /home/runner/micromamba/envs/test_${{ matrix.python-version.flag }}/share/proj
PROJ_LIB: /home/runner/micromamba/envs/test_${{ matrix.python-version.flag }}/share/proj
COVERAGE_FILE: .coverage
PYTEST_MYSQL_DB_URL: mysql://gis:gis@127.0.0.1:3307/gis
PYTEST_MARIADB_DB_URL: mariadb://gis:gis@127.0.0.1:3308/gis
Expand Down

0 comments on commit 5eab394

Please sign in to comment.