Skip to content
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
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -19,9 +18,9 @@ jobs:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
- name: Build service TEST image
env:
DOCKER_BUILDKIT: 1
Expand All @@ -33,7 +32,7 @@ jobs:
- name: Save images for downstream jobs
run: |
docker save local/service-test:ci | gzip > service-test.tar.gz
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: test-images
path: service-test.tar.gz
Expand All @@ -45,11 +44,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ubuntu-latest]
needs: build-test-images
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: actions/checkout@v6
- uses: actions/download-artifact@v6
with:
name: test-images
- name: Load images
Expand All @@ -63,7 +62,7 @@ jobs:
python -m coverage run -m pytest
'
- name: Upload coverage xml
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: coverage-xml
path: service/reports/ci/coverage.xml
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 0 * * *'

jobs:
analyze:
Expand Down Expand Up @@ -57,7 +55,7 @@ jobs:
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
push:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'

permissions:
security-events: write
jobs:
Expand All @@ -14,15 +13,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" , "3.14" ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: service/requirements.test.txt
- name: Install tools
run: |
python -m pip install -U pip
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -18,38 +17,39 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" , "3.14" ]
env:
PYTHONUTF8: "1"
PYTHONPATH: ${{ github.workspace }}/service
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: service/requirements.test.txt

- name: Install deps (Ubuntu)
if: matrix.os == 'ubuntu-latest'
- name: Install deps (Unix)
if: matrix.os != 'windows-latest'
shell: bash
run: |
set -eux
python -m pip install -U pip
pip install -r service/requirements.test.txt
python -m pip install -r service/requirements.test.txt
if [ -f service/pyproject.toml ] || [ -f service/setup.cfg ] || [ -f service/setup.py ]; then
pip install -e service
python -m pip install -e service
fi
- name: Install deps (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
python -m pip install -U pip
pip install -r service/requirements.test.txt
python -m pip install -r service/requirements.test.txt
$hasPythonProject = (Test-Path -Path 'service/pyproject.toml') -or
(Test-Path -Path 'service/setup.cfg') -or
(Test-Path -Path 'service/setup.py')
Expand All @@ -63,15 +63,15 @@ jobs:
run: |
python --version
pip --version
pytest --version
python -m pytest --version
python -c "import sys,platform,os;print(platform.platform());print(sys.version);print('PYTHONPATH=',os.environ.get('PYTHONPATH'))"
- name: Run tests with coverage
shell: bash
run: |
python -m coverage run -m pytest -q
python -m coverage xml -o coverage.xml
- name: Upload coverage.xml
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: coverage-${{ matrix.os }}-py${{ matrix.python-version }}
path: coverage.xml
Expand Down
Loading