Skip to content

Bump github/codeql-action from 3.28.9 to 3.28.10 #563

Bump github/codeql-action from 3.28.9 to 3.28.10

Bump github/codeql-action from 3.28.9 to 3.28.10 #563

Workflow file for this run

# SPDX-FileCopyrightText: 2022 Contributors to the rez project
#
# SPDX-License-Identifier: Apache-2.0
name: test
on:
push:
branches: [main]
paths-ignore:
- .github/workflows/update_pip.yaml
- 'docs/**'
- '.readthedocs.yaml'
- '**/*.md'
pull_request:
paths-ignore:
- .github/workflows/update_pip.yaml
- 'docs/**'
- .readthedocs.yaml
- '**/*.md'
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
permissions: {}
jobs:
test:
name: test
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
# Ping macos to 13 so that we get intel CPUs.
# TODO: Make our tests support arm64.
os: ['ubuntu', 'windows', 'macos']
fail-fast: false
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python }}
- name: Install uv
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
- name: Test
run: uvx nox --default-venv-backend uv --error-on-missing-interpreter -s test-${{ matrix.python }}
env:
# uv really wants to take control of what python it uses...
# Force it to only use system pythons
UV_PYTHON_PREFERENCE: only-system
# When using nox with uv, it will try to automatically
# install python using uv using "uv python install".
# So tell uv that it can't do that. Nox will gracefully
# handle the failure and fallback to the system python.
UV_PYTHON_DOWNLOADS: '0'
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@44ecb3a270cd942bdf0fa8f2ce14cb32493e810a # v1.0.3
with:
file: 'junit.xml'
flags: "py-${{ matrix.python }},${{ matrix.os }}"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
with:
files: 'coverage.xml'
disable_search: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
mypy:
name: mypy
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3.11
- name: mypy
run: pipx run nox -s mypy
format:
name: format
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3.11
- name: format
run: pipx run nox -s format