Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the free ARM64 test runner #1997

Merged
merged 3 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_cron_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
python -c "import tox; print(f'tox {tox.__version__}')"
- name: Run tests
run: tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
run: python -m tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.tox_env, '-cov') }}
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
Expand Down
23 changes: 1 addition & 22 deletions .github/workflows/ci_cron_weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
python -c "import tox; print(f'tox {tox.__version__}')"
- name: Run tests
run: tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
run: python -m tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}


test_more_architectures:
Expand Down Expand Up @@ -128,24 +128,3 @@ jobs:
ASTROPY_USE_SYSTEM_ALL=1 pip3 install -v --no-build-isolation -e .[test]
pip3 list
python3 -m pytest


test_arm64:
# Native arm64 testing -- paid test runner
# keep this in the weekly cron to minimize the number of jobs
runs-on: linux-arm64
name: Python 3.12 (arm64)
# keep condition in sync with test_more_architectures
if: (github.repository == 'astropy/photutils' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Arch CI')))

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.12'
- name: Set up dependencies
run: pip install tox
- name: Run tests
run: tox -e py312-test -- -n=2
9 changes: 8 additions & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ jobs:
allow_failure: false
prefix: ''

- os: ubuntu-24.04-arm
python: '3.12'
tox_env: 'py312-test'
toxposargs: --remote-data=any
allow_failure: false
prefix: ''

- os: ubuntu-latest
python: '3.12'
tox_env: 'codestyle'
Expand Down Expand Up @@ -124,7 +131,7 @@ jobs:
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
python -c "import tox; print(f'tox {tox.__version__}')"
- name: Run tests
run: tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
run: python -m tox -e ${{ matrix.tox_env }} -- -n=2 ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.tox_env, '-cov') }}
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
Expand Down
Loading