-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (56 loc) · 1.54 KB
/
pii-transform-pr.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
53
54
55
56
57
58
on:
pull_request:
branches:
- main
paths:
- 'src/**'
- 'test/**'
- 'setup.py'
- 'Makefile'
- 'requirements.txt'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Checkout package repository
uses: actions/checkout@v3
with:
path: pii-transform
- name: Checkout pii-data dependency
uses: actions/checkout@main
with:
repository: piisa/pii-data
path: pii-data
- name: Checkout pii-extract-base dependency
uses: actions/checkout@main
with:
repository: piisa/pii-extract-base
path: pii-extract-base
- name: Create venv
run: |
cd pii-transform
VENV="$GITHUB_WORKSPACE/venv" PYTHON="python${{matrix.python-version}}" make venv
- name: Install pii-data from local into the venv
run: |
cd pii-data
VENV=$GITHUB_WORKSPACE/venv make install
- name: Install pii-extract-base from local into the venv
run: |
cd pii-extract-base
VENV=$GITHUB_WORKSPACE/venv make install
- name: Install main package
run: |
cd pii-transform
VENV="$GITHUB_WORKSPACE/venv" make install
- name: Test with pytest
run: |
cd pii-transform
VENV="$GITHUB_WORKSPACE/venv" make unit-verbose