Skip to content

Commit

Permalink
Update testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc authored Jul 4, 2024
1 parent 2794b99 commit 37939b4
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,23 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest,]
python-version: [3.11]
python-version: ['3.10', '3.11']

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: compspace
channel-priority: strict
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!


- name: run tests
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 37939b4

Please sign in to comment.