Skip to content

Merge pull request #69 from globus/dependabot/github_actions/github-a… #48

Merge pull request #69 from globus/dependabot/github_actions/github-a…

Merge pull request #69 from globus/dependabot/github_actions/github-a… #48

Workflow file for this run

name: "🧪 Test"
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
name: "tox"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout the repo"
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- name: "Setup Python"
id: "setup-python"
uses: "actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b" # v5.3.0
with:
python-version: |
3.8
3.9
3.10
3.11
3.12
3.13
allow-prereleases: true
- name: "Detect Pythons"
uses: "kurtmckee/detect-pythons@38187a5464f266e93e5c1467699f7be2bf521d2e" # v1.1.0
- name: "Restore cache"
id: "restore-cache"
uses: "actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a" # v4.1.2
with:
# The cache key includes the following to ensure it busts correctly:
#
# * All Python versions (detected by kurtmckee/detect-pythons, above)
# This ensures that .venv/ symlinks to Python interpreters work.
# * The tox configuration (tox.ini)
# * The various `setup.*` files
#
key: "test-hash=${{ hashFiles('.python-identifiers', 'tox.ini', 'client/setup.py', 'daemon/setup.py') }}"
path: |
.tox/
.venv/
- name: "Create virtual environment"
if: "steps.restore-cache.outputs.cache-hit == false"
run: |
python -m venv .venv
.venv/bin/python -m pip install --upgrade pip setuptools wheel
.venv/bin/python -m pip install tox
- name: "Run tests"
run: ".venv/bin/tox run --colored yes"