-
Notifications
You must be signed in to change notification settings - Fork 59
58 lines (46 loc) · 1.34 KB
/
boefjes_tests.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
name: Boefjes Run the test suite
on:
push:
branches:
- 'main'
- 'release-*'
tags:
- '*'
paths:
- boefjes/**
- octopoes/**
pull_request:
paths:
- boefjes/**
- octopoes/**
jobs:
Tests:
strategy:
fail-fast: false
matrix:
version: [ '3.8', '3.9', '3.10', '3.11' ]
runs-on: ubuntu-20.04
env:
COMPOSE_FILE: .ci/docker-compose.yml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
cache: 'pip' # caching pip dependencies
- name: Install pip
run: python3 -m pip install --upgrade pip
- name: Install dev requirements
run: pip install -r requirements-dev.txt
working-directory: ./boefjes
- name: Install requirements
run: find . -name requirements.txt | xargs -L 1 pip install -r
working-directory: ./boefjes
- name: Install Octopoes
run: pip install wheel && cd octopoes && python setup.py bdist_wheel && pip install dist/octopoes*.whl
- name: Run pytests
run: python3 -m pytest
working-directory: ./boefjes
- name: Run integration tests
run: make itest build_args='--build-arg PYTHON_VERSION=${{ matrix.version }}'
working-directory: ./boefjes