diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e895d9da..5757ee6e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -75,28 +75,24 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install Python dependencies run: | - python -m pip install --upgrade pip setuptools wheel - python -m pip install pytest pytest-cov coveralls + python -m pip install --upgrade pip wheel + python -m pip install pytest\<7 pytest-cov\<4 coveralls python -m pip install git+https://github.com/desihub/desiutil.git@${DESIUTIL_VERSION}#egg=desiutil python -m pip install -r requirements.txt python -m pip install -U 'numpy${{ matrix.numpy-version }}' python -m pip install -U 'matplotlib${{ matrix.matplotlib-version }}' python -m pip cache remove fitsio python -m pip install --no-deps --force-reinstall --ignore-installed 'fitsio${{ matrix.fitsio-version }}' - python -m pip install --editable .[coverage] svn export https://desi.lbl.gov/svn/code/desimodel/${DESIMODEL_DATA}/data - name: Run the test with coverage run: DESIMODEL=$(pwd) pytest --cov - name: Coveralls env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_PARALLEL: true - COVERALLS_FLAG_NAME: "${{ matrix.os }},${{ matrix.python-version }},${{ matrix.package_level }}" - COVERALLS_SERVICE_NAME: github - COVERALLS_SERVICE_JOB_ID: "${{ github.run_id }}" - COVERALLS_SERVICE_NUMBER: "${{ github.workflow }}-${{ github.run_number }}" run: coveralls docs: