Skip to content

Commit

Permalink
First attempt for Conda Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Sep 12, 2024
1 parent 66e536d commit c700ca1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/dev_ci_cd_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Dev CIF API CI/CD PIP

on:
pull_request:
workflow_dispatch:

permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux dependencies
run: |
sudo apt update
sudo apt install -y gdal-bin libgdal-dev
- name: Install Packages
run: |
conda update -n base conda
conda install --yes --file requirements.txt
conda install gdal
conda upgrade numpy
- name: Run Tests
env:
GOOGLE_APPLICATION_USER: ${{ secrets.GOOGLE_APPLICATION_USER }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
pytest tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dev CIF API CI/CD
name: Dev CIF API CI/CD PIP

on:
pull_request:
Expand Down

0 comments on commit c700ca1

Please sign in to comment.