Skip to content

Commit

Permalink
Merge pull request #56 from ocefpaf/fix_pyver_gha
Browse files Browse the repository at this point in the history
Fix Python version in the PyPI GitHub Actions
  • Loading branch information
ocefpaf authored May 23, 2024
2 parents 4cf5534 + 2bf4474 commit 8bc33f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
# must the the latest one where cf_units is
python-version: "3.11"

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
Expand All @@ -26,17 +29,14 @@ jobs:
python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
- name: Install cc-plugin-glider
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Run tests
shell: bash -l {0}
run: |
python -m pytest -rxs --pyargs cc_plugin_glider
- name: Test latest compliance-checker
shell: bash -l {0}
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version == '3.11') }}
run: >
micromamba remove compliance-checker --yes
Expand Down

0 comments on commit 8bc33f7

Please sign in to comment.