-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (41 loc) · 1.15 KB
/
self.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
name: self-ci
on: [push, pull_request]
jobs:
tests:
runs-on: self-hosted
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.9','3.10','3.11','3.12']
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: set path
run: |
echo "/github/home/.local/bin" >> $GITHUB_PATH
- name: Install python dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry env use ${{ matrix.python-version }}
poetry install --with dev
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: "--durations=0"
run: |
poetry run pytest --cov janus_core --cov-append .
- name: Report coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
parallel: true
flag-name: run-${{ matrix.python-version }}
file: coverage.xml
base-path: janus_core
coverage:
needs: tests
runs-on: self-hosted
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v2
with:
parallel-finished: true