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

MAINT: adding pyhon 3.12 and other CI cleanup #71

Merged
merged 5 commits into from
Aug 23, 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
26 changes: 15 additions & 11 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
tags:
workflow_dispatch:
schedule:
# Run every Sunday at 03:53 UTC
- cron: 53 3 * * 0
# Run every Tuesday at 03:53 UTC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, sorry to traumatize you like this. 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh 😂
you shouldn't receive failing ci notifications on a weekend either, the only place where we should run them on a weekend is when they ping third-party servers.

- cron: 53 3 * * 2

jobs:
tests:
Expand All @@ -19,7 +19,7 @@ jobs:
include:
- os: macos-latest
python-version: 3.7
toxenv: py37-test-pytest46
toxenv: py37-test-pytestoldest
- os: ubuntu-latest
python-version: 3.7
toxenv: py37-test-pytest50
Expand All @@ -45,8 +45,20 @@ jobs:
python-version: '3.11'
toxenv: py311-test-pytest72
- os: ubuntu-latest
python-version: '3.11'
toxenv: py310-test-pytest73
- os: windows-latest
python-version: '3.11'
toxenv: py310-test-pytest74
- os: macos-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: ubuntu-latest
python-version: '3.12-dev'
toxenv: py312-test-pytestdev

steps:
- uses: actions/checkout@v3
Expand All @@ -60,11 +72,3 @@ jobs:
run: python -m pip install tox
- name: Run Tox
run: tox -v -e ${{ matrix.toxenv }}

# - name: Slack Notification
# uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
# if: always() # TODO: cron
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ url = https://github.com/astropy/pytest-remotedata
author = The Astropy Developers
author_email = [email protected]
classifiers =
Development Status :: 3 - Alpha
Development Status :: 5 - Production/Stable
Framework :: Pytest
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Expand All @@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Testing
Topic :: Utilities
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311}-test{,-devdeps}
py{37,38,39,310,311,312}-test{,-devdeps}
codestyle
requires =
setuptools >= 30.3.0
Expand All @@ -11,7 +11,7 @@ isolated_build = true
changedir = .tmp/{envname}
description = run tests
deps =
pytest46: pytest==4.6.*
pytestoldest: pytest==4.6.*
pytest50: pytest==5.0.*
pytest51: pytest==5.1.*
pytest52: pytest==5.2.*
Expand All @@ -20,6 +20,8 @@ deps =
pytest61: pytest==6.1.*
pytest71: pytest==7.1.*
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest

commands =
Expand Down