diff --git a/.github/workflows/pythontest.yaml b/.github/workflows/pythontest.yaml index 2f154bf3..db0fb259 100644 --- a/.github/workflows/pythontest.yaml +++ b/.github/workflows/pythontest.yaml @@ -8,9 +8,9 @@ jobs: python-version: [ "3.7" ] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@master - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@master with: python-version: ${{ matrix.python-version }} - name: Lint with flake8 @@ -27,30 +27,28 @@ jobs: os: [ 'ubuntu-latest' ] python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@master + - uses: actions/setup-python@master with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | # TODO don't get all the indexes. sudo apt-get install -y exiftool fonts-freefont-ttf libcfitsio-bin astrometry.net astrometry-data-tycho2-10-19 - - name: Download CR2 file - run: | - curl https://storage.googleapis.com/panoptes-resources/test-data/canon.cr2 --output ./tests/data/canon.cr2 + # - name: Download CR2 file + # run: | + # curl https://storage.googleapis.com/panoptes-resources/test-data/canon.cr2 --output ./tests/data/canon.cr2 - name: Install panoptes-utils on ${{ matrix.python-version }} run: | pip install -e ".[config,images,testing,social]" - name: Test panoptes-utils on ${{ matrix.python-version }} run: | pytest --test-solve --test-databases=all - - name: Upload coverage report to codecov.io - uses: codecov/codecov-action@v1 - if: success() + - uses: codecov/codecov-action@v4 with: - name: codecov-upload - file: build/coverage.xml - fail_ci_if_error: true + name: Upload to codecov.io + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true - name: Create log file artifact uses: actions/upload-artifact@v1 if: always()