-
Notifications
You must be signed in to change notification settings - Fork 58
57 lines (46 loc) · 1.42 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
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.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: grep -v git+https:// requirements-dev.txt | pip install -r /dev/stdin && grep git+https:// requirements-dev.txt | pip install -r /dev/stdin
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