Skip to content

Commit

Permalink
remove string replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 21, 2022
1 parent bddaf40 commit 16ee497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/[email protected]
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" environment.yml
if: runner.os == 'Linux'
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" environment.yml
if: runner.os == 'MacOS'
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -65,17 +61,15 @@ jobs:
use-only-tar-bz2: true
- run: conda env export > asdf-tutorial-py${{ matrix.python }}-v${{ steps.version.outputs.version }}.yml
if: runner.os == 'Linux'
- run: sed -i "s/asdf-tutorial-${{ runner.os }}-py${{ matrix.python }}-latest/asdf-tutorial-py${{ matrix.python }}-v${{ steps.version.outputs.version }}/g" asdf-tutorial-py${{ matrix.python }}-v${{ steps.version.outputs.version }}.yml
if: runner.os == 'Linux'
- run: cat asdf-tutorial-py${{ matrix.python }}-v${{ steps.version.outputs.version }}.yml
if: runner.os == 'Linux'
- uses: actions/[email protected]
if: runner.os == 'Linux'
with:
name: asdf-tutorial-py${{ matrix.python }}-v${{ steps.version.outputs.version }}.yml
path: asdf-tutorial-py${{ matrix.python }}-v${{ steps.version.outputs.version }}.yml
unit_tests:
name: run `${{ matrix.package }}` unit tests (Python ${{ matrix.python }}, ${{ matrix.os }})
run_notebooks:
name: run notebooks (Python ${{ matrix.python }}, ${{ matrix.os }})
needs: [ build ]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -85,10 +79,6 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/[email protected]
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" environment.yml
if: runner.os == 'Linux'
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" environment.yml
if: runner.os == 'MacOS'
- run: echo "::set-output name=date::$(date +'%Y%m%d')"
id: date
- uses: actions/[email protected]
Expand Down
9 changes: 4 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ name: asdf-tutorial-env

dependencies:
- jupyter
- notebook >= 6.0
- matplotlib >= 3.2
- numpy >= 1.16
- matplotlib
- numpy
- pip
- python >= 3.9
- pip:
- asdf
- asdf-astropy
- asdf-standard
- astropy >= 4.2
- gwcs >= 0.16
- astropy
- gwcs

0 comments on commit 16ee497

Please sign in to comment.