-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.45 KB
/
Copy pathtests.yml
File metadata and controls
61 lines (55 loc) · 1.45 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
57
58
59
60
61
name: Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
dump-context:
runs-on: ubuntu-latest
steps:
- name: Dump context "GitHub"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
tests:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.11', '3.12', '3.13', '3.14' ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out the repository
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch pre-commit
hatch env create
- name: Lint and typecheck
run: |
hatch run lint:all
- name: Install Chrome browser
uses: browser-actions/setup-chrome@v2
with:
install-dependencies: true
install-chromedriver: true
- name: Check Chrome (for analysis in case of an error)
run: |
google-chrome --version || true
which google-chrome || true
- name: Run Tests
run: |
hatch test -m "not local"