diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8156a34..8c6fa65 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,10 +31,6 @@ jobs: os: [ ubuntu-latest, macos-latest ] steps: - uses: actions/checkout@v3.0.2 - - 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/setup-python@v4.1.0 with: python-version: ${{ matrix.python }} @@ -65,8 +61,6 @@ 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/upload-artifact@v3.1.0 @@ -74,8 +68,8 @@ jobs: 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: @@ -85,10 +79,6 @@ jobs: os: [ ubuntu-latest, macos-latest ] steps: - uses: actions/checkout@v3.0.2 - - 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/cache@v3.0.5 diff --git a/environment.yml b/environment.yml index b2f7955..90537d7 100644 --- a/environment.yml +++ b/environment.yml @@ -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