Skip to content

Commit

Permalink
ci: github action workflow to check package installs with just base r…
Browse files Browse the repository at this point in the history
…equiements
  • Loading branch information
zonca committed Jan 23, 2025
1 parent a51c5ae commit 7a31998
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/import_base_requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test that the package works only with base requirements

on:
push:
branches:
- main
pull_request:

jobs:
test_ci_tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Python 3.12 Import Check
os: ubuntu-22.04
python: 3.12

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: test-env
create-args: >-
python=${{ matrix.python }}
netcdf4
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'
- name: Install base requirements
run: pip install .
shell: bash -el {0}
- name: Check import
run: |
python -c "import pysm3"
shell: bash -el {0}

0 comments on commit 7a31998

Please sign in to comment.