mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-01-12 01:20:26 +00:00
This hasn't been working out as well as we'd hope. Tox relies on the system having Python versions installed which distros don't tend to carry anymore. Our custom run_tests leverages vpython when possible to run stable Python 3.8 & 3.11 versions which is providing an OK level of coverage in practice. Change-Id: Ida517f7be47ca95703e43bc0af5a24dd70c0467e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/540001 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Mike Frysinger <vapier@google.com>
33 lines
906 B
YAML
33 lines
906 B
YAML
# GitHub actions workflow.
|
|
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
|
|
|
|
name: Test CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, repo-1, stable, maint]
|
|
tags: [v*]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# ubuntu-20.04 is the last version that supports python 3.6
|
|
os: [ubuntu-20.04, macos-latest, windows-latest]
|
|
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install pytest
|
|
- name: Run tests
|
|
run: python -m pytest
|