From 6ae7dc6577d4584a0ce73bce65ab8047f79c7abf Mon Sep 17 00:00:00 2001 From: "Laura, Jason R" <jlaura@usgs.gov> Date: Thu, 29 Feb 2024 14:26:49 -0700 Subject: [PATCH] Adds GH CI --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c34dd99 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: Pull-Request-CI + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + Build-and-Test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + defaults: + run: + shell: bash -l {0} + steps: + - name: Checkout Code + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 + - name: Setup ENV + uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3 + with: + miniconda-version: "latest" + activate-environment: knoten + environment-file: environment.yml + auto-activate-base: false + auto-update-conda: true + python-version: ${{ matrix.python-version }} + - name: Check build environment + run: | + conda list + - name: Install Python Package + run: | + python setup.py install + - name: Test Python Package + run: | + pytest knoten \ No newline at end of file -- GitLab