Skip to content

Commit

Permalink
Update pull_request_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 authored Jul 1, 2024
1 parent e80002b commit de9ff05
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pull_request_tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Pytests

on:
on:
pull_request:
workflow_dispatch:

Expand All @@ -17,25 +17,24 @@ jobs:
python-version: '3.10'
- os: ubuntu-latest
python-version: '3.9'
- os: ubuntu-latest
python-version: '3.8'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
fetch-tags: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install nsrdb dependencies
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
conda install hdf4
python -m pip install pyhdf
python -m pip install pytest
python -m pip install pytest-cov
python -m pip install .
python -m pip install .[test]
- name: Run pytest
run: |
python -m pytest -v --disable-warnings

0 comments on commit de9ff05

Please sign in to comment.