diff --git a/.github/workflows/import_base_requirements.yaml b/.github/workflows/import_base_requirements.yaml new file mode 100644 index 00000000..8e1378dc --- /dev/null +++ b/.github/workflows/import_base_requirements.yaml @@ -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} \ No newline at end of file