Skip to content

Commit

Permalink
Update to Python 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniessink committed Aug 26, 2024
1 parent d307029 commit e23c394
Show file tree
Hide file tree
Showing 27 changed files with 153 additions and 171 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
export COMPOSE_FILE=docker/docker-compose.yml:docker/docker-compose.ci.yml
docker compose build && docker compose up -d
docker ps
docker run -it -w `pwd` -v `pwd`:`pwd` --network=container:docker-www-1 python:3.12.4-bookworm tests/application_tests/ci/test.sh
docker run -it -w `pwd` -v `pwd`:`pwd` --network=container:docker-www-1 python:3.13.0rc1-bookworm tests/application_tests/ci/test.sh
docker ps
docker compose logs > build/containers.log
- run:
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/api_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd components/api_server
ci/pip-install.sh
- name: Test
run: |
cd components/api_server
ci/unittest.sh
- name: Quality
run: |
cd components/api_server
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd components/api_server
ci/pip-install.sh
- name: Test
run: |
cd components/api_server
ci/unittest.sh
- name: Quality
run: |
cd components/api_server
ci/quality.sh
27 changes: 13 additions & 14 deletions .github/workflows/application-tests-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd tests/application_tests
ci/pip-install.sh
- name: Quality
run: |
cd tests/application_tests
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd tests/application_tests
ci/pip-install.sh
- name: Quality
run: |
cd tests/application_tests
ci/quality.sh
3 changes: 1 addition & 2 deletions .github/workflows/application-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Application tests
on: [push]

jobs:

build:
runs-on: ubuntu-latest

Expand All @@ -17,7 +16,7 @@ jobs:
run: |
mkdir -p build
docker compose --file docker/docker-compose.yml --file docker/docker-compose.ci.yml --project-name quality-time up --build --detach --wait
docker run -t -w `pwd` -v `pwd`:`pwd` --network=container:quality-time-www-1 python:3.12.4-bookworm tests/application_tests/ci/test.sh
docker run -t -w `pwd` -v `pwd`:`pwd` --network=container:quality-time-www-1 python:3.13.0rc1-bookworm tests/application_tests/ci/test.sh
- name: Save container logs
if: always()
run: |
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd components/collector
ci/pip-install.sh
- name: Test
run: |
cd components/collector
ci/unittest.sh
- name: Quality
run: |
cd components/collector
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd components/collector
ci/pip-install.sh
- name: Test
run: |
cd components/collector
ci/unittest.sh
- name: Quality
run: |
cd components/collector
ci/quality.sh
37 changes: 18 additions & 19 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,24 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd docs
ci/pip-install.sh
npm install --ignore-scripts
- name: Test
run: |
cd docs
ci/unittest.sh
- name: Quality
run: |
cd docs
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd docs
ci/pip-install.sh
npm install --ignore-scripts
- name: Test
run: |
cd docs
ci/unittest.sh
- name: Quality
run: |
cd docs
ci/quality.sh
27 changes: 13 additions & 14 deletions .github/workflows/feature-tests-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd tests/feature_tests
ci/pip-install.sh
- name: Quality
run: |
cd tests/feature_tests
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd tests/feature_tests
ci/pip-install.sh
- name: Quality
run: |
cd tests/feature_tests
ci/quality.sh
3 changes: 1 addition & 2 deletions .github/workflows/feature-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Feature tests
on: [push]

jobs:

build:
runs-on: ubuntu-latest

Expand All @@ -12,7 +11,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.13.0-rc.1"
- name: Run feature tests
run: ./tests/feature_tests/ci/test.sh
- name: Upload artifacts
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd components/notifier
ci/pip-install.sh
- name: Test
run: |
cd components/notifier
ci/unittest.sh
- name: Quality
run: |
cd components/notifier
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd components/notifier
ci/pip-install.sh
- name: Test
run: |
cd components/notifier
ci/unittest.sh
- name: Quality
run: |
cd components/notifier
ci/quality.sh
27 changes: 13 additions & 14 deletions .github/workflows/release-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd release
ci/pip-install.sh
- name: Quality
run: |
cd release
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd release
ci/pip-install.sh
- name: Quality
run: |
cd release
ci/quality.sh
35 changes: 17 additions & 18 deletions .github/workflows/shared_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd components/shared_code
ci/pip-install.sh
- name: Test
run: |
cd components/shared_code
ci/unittest.sh
- name: Quality
run: |
cd components/shared_code
ci/quality.sh
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0-rc.1"
- name: Install dependencies
run: |
cd components/shared_code
ci/pip-install.sh
- name: Test
run: |
cd components/shared_code
ci/unittest.sh
- name: Quality
run: |
cd components/shared_code
ci/quality.sh
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-python@v5
if: env.SONAR_TOKEN != null
with:
python-version: "3.12"
python-version: "3.13.0-rc.1"
- name: Set up Node
uses: actions/[email protected]
if: env.SONAR_TOKEN != null
Expand Down
12 changes: 6 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.12"
python: "3.13"
apt_packages:
- graphviz

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/src/conf.py
configuration: docs/src/conf.py

# Additional formats to build
formats:
- pdf
- pdf

# Requirements to install
python:
install:
- requirements: docs/requirements/requirements-dev.txt
- requirements: docs/requirements/requirements-internal-rtd.txt
install:
- requirements: docs/requirements/requirements-dev.txt
- requirements: docs/requirements/requirements-internal-rtd.txt
Loading

0 comments on commit e23c394

Please sign in to comment.