-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (47 loc) · 1.23 KB
/
test.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
name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
test-file-queue:
name: 'Test fs-task-queue'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: 'Checkout Repository'
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install .[extra,dev]
- name: Black Formatting
run: |
black --version
black fs_task_queue --diff
black --check fs_task_queue
- name: Flake8 Formatting
run: |
flake8 --version
flake8
- name: Release Check
run: |
python -m build --sdist
twine check dist/*
- name: Unit Tests
run: |
pytest tests/test_unit.py -v
- name: Startup Integration Test Requirements
run: |
docker-compose up --build -d
- name: Integration Tests
run: |
# run with root so no permissions issues
export PYTEST_PATH=$(which pytest)
sudo $PYTEST_PATH tests/test_integration.py -v