-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (46 loc) · 1.43 KB
/
Copy pathcheck.yml
File metadata and controls
56 lines (46 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Check workflow.
# Purpose: run fast single-version unit tests for branch and PR feedback.
# This complements verify.yml, which runs the full cross-version matrix and artifact checks.
name: "Check"
on:
push:
# Mainline, merge-queue, and release-please refs are covered by other workflows.
branches-ignore:
- main
- master
- merge/**
- gh-readonly-queue/**
- release-please--branches--**
pull_request:
branches: [main]
concurrency:
# Cancel superseded runs for the same ref.
group: check-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "2.4.1"
POETRY_VIRTUALENVS_IN_PROJECT: "true"
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
test:
# Single-version unit test run for fast feedback.
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Install Poetry
run: pipx install "poetry==${POETRY_VERSION}"
- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: poetry
cache-dependency-path: poetry.lock
- name: Install dependencies
run: poetry install --no-interaction --no-ansi
- name: Test
run: make test-local