This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (52 loc) · 1.81 KB
/
test-and-release-rkd.yaml
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
name: Test and release a package
on: [push]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.7"]
max-parallel: 3
steps:
- name: Set GIT identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "Buenaventura Durruti"
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Check if the code compiles
run: "python -m compileall ."
- name: Install dependencies
run: "make deps"
- name: Build project
run: "make package"
- name: Run RKD tests on Python ${{ matrix.python-version }}
run: "make tests"
- name: Archive RKD tests results
uses: dorny/test-reporter@v1
if: always()
with:
name: "[${{ matrix.python-version }}] RKD tests"
path: src/*/build/tests.xml
reporter: java-junit
release:
needs: [test]
runs-on: ubuntu-20.04
if: always()
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: "make deps"
- name: Release to PyPI
run: "make release PYPI_TOKEN=${{ secrets.PYPI_TOKEN }}"