Skip to content

Commit

Permalink
Removing xspec-modelsonly installation for macos-latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndilalla committed Sep 10, 2024
1 parent 47e782c commit 62b74d3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, macos-12]
python-version: [3.9]

include:
- environment: ci/environment.yml
- environment: ci/environment_noxspec.yml
os: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -103,7 +106,7 @@ jobs:
#miniforge-version: latest
python-version: ${{ matrix.python-version }}
auto-update-conda: true
environment-file: ci/environment.yml
environment-file: ${{ matrix.environment }}
use-only-tar-bz2: true
channel-priority: true
channels: conda-forge, xspecmodels, threeml
Expand Down Expand Up @@ -176,20 +179,23 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, macos-12]
python-version: [3.9]

include:
- environment: ci/environment.yml
- environment: ci/environment_noxspec.yml
os: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache conda
uses: actions/cache@v4
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: conda-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('ci/environment.yml') }}
#- name: Cache conda
# uses: actions/cache@v4
# env:
# # Increase this value to reset cache if etc/example-environment.yml has not changed
# CACHE_NUMBER: 0
# with:
# path: ~/conda_pkgs_dir
# key: conda-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('ci/environment.yml') }}
- name: Add conda ${{ matrix.python-version }} to system path
uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -200,7 +206,7 @@ jobs:
#miniforge-version: latest
python-version: ${{ matrix.python-version }}
auto-update-conda: true
environment-file: ci/environment.yml
environment-file: ${{ matrix.environment }}
use-only-tar-bz2: true
channel-priority: true
channels: conda-forge, xspecmodels, threeml
Expand Down Expand Up @@ -254,7 +260,7 @@ jobs:
LABEL="--label dev"
fi
.github/workflows/test_and_build.yml
if [[ ${{matrix.os}} == ubuntu-latest ]];
then

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ jobs:
matrix:
os: ["ubuntu-latest", "macos-latest", "macos-12"]
python-version: [3.9]
include:
- environment: ci/environment.yml
- environment: ci/environment_noxspec.yml
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -124,7 +128,7 @@ jobs:
miniforge-version: latest
python-version: ${{ matrix.python-version }}
auto-update-conda: true
environment-file: ci/environment.yml
environment-file: ${{ matrix.environment }}
use-only-tar-bz2: true
channel-priority: strict
channels: conda-forge, xspecmodels
Expand Down

0 comments on commit 62b74d3

Please sign in to comment.