-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (32 loc) · 1.45 KB
/
statistic-tests.yml
File metadata and controls
42 lines (32 loc) · 1.45 KB
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
name: Statistics Tests
env:
DB_USER_NAME: ${{ secrets.STATS_DB_USER_NAME }}
DB_PASSWORD: ${{ secrets.STATS_DB_PASSWORD }}
DB_HOST_AND_PORT: ${{ secrets.STATS_DB_HOST_AND_PORT }}
DB_NAME: ${{ secrets.STATS_DB_NAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGE_CLOUD_API_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_TOKEN }}
PACKAGE_CLOUD_ADMIN_API_TOKEN: ${{ secrets.PACKAGE_CLOUD_ADMIN_API_TOKEN }}
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
unit_test_execution:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install package dependencies
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev
- name: Install python requirements
run: python -m pip install -r packaging_automation/requirements.txt
- name: Unit tests for "Docker statistics"
run: python -m pytest -q packaging_automation/tests/test_docker_statistics_collector.py
- name: Unit tests for "Github clone statistics"
run: python -m pytest -q packaging_automation/tests/test_github_statistics_collector.py
- name: Unit tests for "Packagecloud download statistics"
run: python -m pytest -q packaging_automation/tests/test_package_cloud_statistics_collector.py
- name: Unit tests for "Homebrew download statistics"
run: python -m pytest -q packaging_automation/tests/test_homebrew_statistics_collector.py