-
Notifications
You must be signed in to change notification settings - Fork 23
55 lines (44 loc) · 1.48 KB
/
ci.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: BigFlow CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Setup github username
run: |
git config --global user.email "fake@example.com"
git config --global user.name "fake name"
- name: Setup docker
run: |
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test"
sudo apt update
sudo apt install docker-ce containerd.io
docker -v
- name: Install dependencies
run: |
pip install pip==22.0.3
pip install -r requirements.txt
- name: Run unit tests
run: |
pytest --html=build/test-report.html --self-contained-html
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report
path: build/test-report.html