Skip to content

Commit

Permalink
changed env setup python version
Browse files Browse the repository at this point in the history
  • Loading branch information
rsexton2 committed Nov 18, 2024
1 parent c1c4aa0 commit cdd4baa
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@ defaults:
shell: bash -l {0}

jobs:
# environment-config:
# runs-on: ubuntu-latest
# outputs:
# stable-python-version: ${{ steps.get-compatible-python.outputs.stable-python }}
# python-matrix: ${{ steps.get-compatible-python.outputs.python-versions }}
# steps:
# - uses: actions/[email protected]
# with:
# python-version: "3.13"
#
# - id: get-compatible-python
# uses: MDAnalysis/mdanalysis-compatible-python@main
# with:
# release: "latest"
#
environment-config:
runs-on: ubuntu-latest
outputs:
stable-python-version: ${{ steps.get-compatible-python.outputs.stable-python }}
python-matrix: ${{ steps.get-compatible-python.outputs.python-versions }}
steps:
- uses: actions/[email protected]
with:
python-version: "3.12"

- id: get-compatible-python
uses: MDAnalysis/mdanalysis-compatible-python@main
with:
release: "latest"

main-tests:
if: "github.repository == 'becksteinlab/basicrta'"
# needs: environment-config
needs: environment-config
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
# python-version: ${{ fromJSON(needs.environment-config.outputs.python-matrix) }}
python-version: ["3.10", "3.11", "3.12"]
python-version: ${{ fromJSON(needs.environment-config.outputs.python-matrix) }}
# python-version: ["3.10", "3.11", "3.12"]
mdanalysis-version: ["latest", "develop"]
exclude:
- python-version: "3.9"
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:

pylint_check:
if: "github.repository == 'becksteinlab/basicrta'"
# needs: environment-config
needs: environment-config
runs-on: ubuntu-latest

steps:
Expand All @@ -128,8 +128,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
#python-version: ${{ needs.environment-config.outputs.stable-python-version }}
python-version: "3.12"
python-version: ${{ needs.environment-config.outputs.stable-python-version }}
#python-version: "3.12"
- name: Install Pylint
run: |
which pip
Expand All @@ -145,18 +145,18 @@ jobs:
pypi_check:
if: "github.repository == 'becksteinlab/basicrta'"
# needs: environment-config
needs: environment-config
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

#- name: Set up Python ${{ needs.environment-config.outputs.stable-python-version }}
- name: Set up Python
- name: Set up Python ${{ needs.environment-config.outputs.stable-python-version }}
# - name: Set up Python
uses: actions/setup-python@v4
with:
#python-version: ${{ needs.environment-config.outputs.stable-python-version }}
python-version: "3.12"
python-version: ${{ needs.environment-config.outputs.stable-python-version }}
#python-version: "3.12"

- name: Install dependencies
run: |
Expand Down

0 comments on commit cdd4baa

Please sign in to comment.