forked from platzky/platzky
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 976 Bytes
/
Copy pathtests.yml
File metadata and controls
50 lines (40 loc) · 976 Bytes
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
name: Testing pipeline
on:
pull_request:
branches:
- main
- next
workflow_call:
permissions:
contents: 'read'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- 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
- name: Run tests with coverage
run: make coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: "./coverage.lcov"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Cypress
working-directory: "./tests/e2e_tests"
run: npm install cypress
- name: Run e2e tests
run: |
make run-e2e-instance &
sleep 3
make e2e-tests