Skip to content

Commit

Permalink
Merge pull request #516 from kafitzgerald/fix_ci_python_versions
Browse files Browse the repository at this point in the history
Fix and update CI and bump minimum Python requirement
  • Loading branch information
jukent committed Jun 10, 2023
2 parents 667ae87 + 9b203c9 commit 4077bce
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 47 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/ci-nightly.yml

This file was deleted.

21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI
on:
pull_request:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
workflow_dispatch:

concurrency:
Expand All @@ -19,24 +21,25 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest"]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.8", "3.9", "3.10" ]
include:
- os: "macos-latest"
python-version: "3.7"
python-version: "3.8"
- os: "macos-latest"
python-version: "3.10"

steps:
- uses: actions/checkout@v3
- name: Create conda environment
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
uses: mamba-org/provision-with-micromamba@main
- name: checkout
uses: actions/checkout@v3
- name: setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "latest"
environment-name: geocat-examples
environment-file: conda_environment.yml
- name: Make html
cache-environment: true
create-args: >-
python=${{matrix.python-version}}
- name: make html
shell: bash -l {0}
working-directory: ./docs
run: |
Expand Down
2 changes: 1 addition & 1 deletion conda_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- ncar
dependencies:
- python>=3.7
- python>=3.8
- geocat-comp
- cf_xarray>=0.3.1
- geocat-datafiles
Expand Down

0 comments on commit 4077bce

Please sign in to comment.