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

Separate the tests for deprecation warnings #1490

Merged
merged 1 commit into from
Oct 24, 2023
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
48 changes: 47 additions & 1 deletion .github/workflows/test_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,53 @@ jobs:
cd ${{ github.workspace }}/.. # move out of the workspace to avoid direct import
${{ steps.python.outputs.python-path }} -Wd ${{ github.workspace }}/dev/continuous-integration/run_test_suite.py
env:
DEPRECATION_ERROR: true
AGENT_OS: ${{runner.os}}
STANDALONE: ${{ matrix.standalone }}
FLOAT_DTYPE_32: ${{ matrix.float_dtype_32 }}

test-deprecations:
needs: [ get_python_versions ]
name: "Python ${{ matrix.python-version }} check for deprecation warnings on (standalone: ${{ matrix.standalone }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
standalone: [ false, true ]
python-version: [ "${{ needs.get_python_versions.outputs.max-python }}" ]

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install GSL
uses: johnwason/vcpkg-action@v5
id: vcpkg
with:
pkgs: gsl
triplet: x64-linux
cache-key: gsl-x64-linux
revision: master
token: ${{ github.token }}
- name: Install Python
id: python
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
${{ steps.python.outputs.python-path }} -m pip install --upgrade pip setuptools
${{ steps.python.outputs.python-path }} -m pip install --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy scipy
${{ steps.python.outputs.python-path }} -m pip install --pre pytest cython sympy pyparsing jinja2 sphinx
- name: Install Brian2
run: ${{ steps.python.outputs.python-path }} -m pip install --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple .
- name: Run Tests
run: |
cd ${{ github.workspace }}/.. # move out of the workspace to avoid direct import
${{ steps.python.outputs.python-path }} -Wd ${{ github.workspace }}/dev/continuous-integration/run_test_suite.py || echo "Tests failed (but not marked as failed on GA)"
env:
DEPRECATION_ERROR: true
AGENT_OS: linux
STANDALONE: ${{ matrix.standalone }}
2 changes: 1 addition & 1 deletion dev/continuous-integration/run_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
float_dtype = None

if deprecation_error:
args = ['-W', 'error::DeprecationWarning']
args = ['-W', 'error::DeprecationWarning', '--tb=short']
else:
args = []

Expand Down
Loading