forked from murbard/pytezos
-
Notifications
You must be signed in to change notification settings - Fork 38
76 lines (67 loc) · 1.84 KB
/
test.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
paths:
- 'src/**'
- 'tests/**'
- 'pyproject.toml'
- 'poetry.lock'
- '.github/workflows/test.yml'
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: amd64
python-version: '3.12'
- os: ubuntu-latest
arch: arm64
python-version: '3.12'
- os: ubuntu-latest
arch: amd64
python-version: '3.11'
- os: ubuntu-latest
arch: amd64
python-version: '3.10'
- os: ubuntu-latest
arch: amd64
python-version: '3.9'
- os: ubuntu-latest
arch: amd64
python-version: '3.8'
# FIXME: docker.errors.DockerException: Error while fetching server API version
# - os: macos-latest
# arch: amd64
# - os: macos-latest
# arch: arm64
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# FIXME:
# cache: 'poetry'
- name: Install binary dependencies
run: OSTYPE=$OSTYPE make install-deps
- name: Install project
run: make install
- name: Run lint
run: make lint
if: contains(matrix.python-version, '3.12')
- name: Run tests
run: OSTYPE=$OSTYPE make test-ci
- name: Publish results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
junit_files: "*.xml"