Skip to content

Commit

Permalink
Test also with Python 3.13, remove usage of Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhau committed Jan 17, 2025
1 parent 6823b5e commit fd3c0ab
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 36 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12, 3.11, "3.10"]
python-version: [3.13, 3.12, 3.11, "3.10"]

steps:
- name: Checkout source
Expand All @@ -42,9 +42,12 @@ jobs:
- id: ToxSetting
run: |
if [[ "${{ matrix.python-version }}" == "3.12" ]]
if [[ "${{ matrix.python-version }}" == "3.13" ]]
then
echo "toxenv=py312" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.python-version }}" == "3.12" ]]
then
echo "toxenv=py311" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.python-version }}" == "3.11" ]]
then
echo "toxenv=py311" >> $GITHUB_OUTPUT
Expand Down
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All notable changes to this project will be documented in [CHANGELOG](./CHANGELO

---
## Built with
- Python - support Python 3.10, 3.11, 3.12.
- Python - support Python 3.10, 3.11, 3.12, 3.13.
- [CodeQL](https://codeql.github.com) is [enabled](.github/workflows/codeql-analysis.yml) in this repository.
- [Dependabot](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates) is [enabled](.github/dependabot.yml) for auto dependency updates.
- [Gitleaks](https://github.com/gitleaks/gitleaks) and [TruffleHog](https://github.com/trufflesecurity/trufflehog) are enabled in this GitHub Actions [workflow](.github/workflows/secrets-scan.yml) for detecting and preventing hardcoded secrets.
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]

Expand Down
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
[tox]
envlist = py310,py311,py312
envlist = py310,py311,py312,py313
skip_missing_interpreters = True

[testenv]
basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
install_command =
python -m pip install {opts} {packages} -cconstraints.txt
deps =
-rrequirements-test.txt
pip_pre = True
passenv =
CODECOV_TOKEN # codecov
TOXENV # travis and codecov
CODECOV_TOKEN # codecov
TOXENV # codecov
CI
TRAVIS
TRAVIS_*
commands =
pip check
python -m pytest --junit-xml "junit-{envname}.xml"

[testenv:py312]
[testenv:py313]
commands =
pip check
python -m pytest --cov . --cov-config=tox.ini --cov-report xml:coverage-{envname}.xml --junit-xml "junit-{envname}.xml" saml2awsmulti
Expand Down

0 comments on commit fd3c0ab

Please sign in to comment.