Skip to content

Commit

Permalink
Updating GHA to handle codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee authored Apr 5, 2024
1 parent 1020576 commit 403046b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/pythontest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 403046b

Please sign in to comment.