-
Notifications
You must be signed in to change notification settings - Fork 43
52 lines (48 loc) · 1.19 KB
/
main.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
name: Mocket's CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
schedule:
# cron every week on monday
- cron: "0 0 * * 1"
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', ' 3.13', 'pypy3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
pyproject.toml
- uses: hoverkraft-tech/compose-action@v2.0.2
with:
compose-file: "./docker-compose.yml"
down-flags: "--remove-orphans"
up-flags: "--no-start"
- name: Install dependencies
run: |
make develop
make services-up
- name: Test
run: |
make test
make services-down
- name: Push Coveralls
run: |
pip install -q coveralls coveralls[yaml]
coveralls