-
Notifications
You must be signed in to change notification settings - Fork 12
105 lines (100 loc) · 3 KB
/
Copy pathtests.yml
File metadata and controls
105 lines (100 loc) · 3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Testing pipeline
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.rst'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
- 'CHANGELOG.md'
- 'examples/**/*.json'
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.rst'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
- 'CHANGELOG.md'
- 'examples/**/*.json'
# Cancel outdated workflow runs when new commits are pushed to the PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Python 3.10
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.10"
- name: Cache Poetry virtualenv
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cache/pypoetry/virtualenvs
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==2.0.1
poetry install
- name: Run linters
run: make lint-check
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.14"]
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "${{ matrix.python-version }}"
- name: Cache Poetry virtualenv
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cache/pypoetry/virtualenvs
~/.cache/pip
key: ${{ runner.os }}-py${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-py${{ matrix.python-version }}-poetry-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==2.0.1
poetry install
- name: Run tests with coverage
run: make coverage
- name: Coveralls
if: matrix.python-version == '3.14'
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
path-to-lcov: "./coverage.lcov"
github-token: ${{ secrets.GITHUB_TOKEN }}
e2e-tests:
needs: [lint, test]
permissions:
contents: read
actions: read
pull-requests: write
uses: problematy/goodmap-e2e-tests/.github/workflows/e2e-tests.yml@cac4085419b27dfa74062cab5f2f2fcc43ffa230
with:
goodmap-version: ${{ github.sha }}
goodmap-frontend-version: 'main'