Skip to content

Commit 49c5656

Browse files
Jammy2211claude
authored andcommitted
fix: skip astropy-dependent tests on Python 3.13
astropy is in [optional] extras which aren't installed on 3.13. Skip test_file_types.py and test_save_and_load.py which import astropy.io.fits directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a3f0a72 commit 49c5656

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ jobs:
7171
export PYTHONPATH=$PYTHONPATH:$ROOT_DIR/PyAutoConf
7272
export PYTHONPATH=$PYTHONPATH:$ROOT_DIR/PyAutoFit
7373
pushd PyAutoFit
74-
pytest --cov autofit --cov-report xml:coverage.xml
74+
if [ "${{ matrix.python-version }}" = "3.13" ]; then
75+
pytest --cov autofit --cov-report xml:coverage.xml --ignore=test_autofit/database/test_file_types.py --ignore=test_autofit/non_linear/paths/test_save_and_load.py
76+
else
77+
pytest --cov autofit --cov-report xml:coverage.xml
78+
fi
7579
- name: Upload coverage to Codecov
7680
uses: codecov/codecov-action@v3
7781
- name: Slack send

0 commit comments

Comments
 (0)