Skip to content

Commit acbaa9f

Browse files
authored
Issue #344 fix tests (#425)
* Update syntax and test * Push to rerun tests * Syntax update * Push to test * made a change to force action * Update Readme to reflect new workflows * Remove CI folder and files * Update syntax * Fix issues with run rows * Adding workflows for manual execution * Update run on push for tests * Removing workflow * Remove version suffix * Trying a suggestion from user * removed * Reset * Update syntax * Update per docs * Update make statement * Trying to fix some errors * Forgot only one run per statement * Update pylint * enable e2e ENV variable * Updating test script * Update node version requirements * Remove e2e test for now and update test command * adding dateutil to test * set up required modules * Update scripts for testing * Update syntax and test * Push to rerun tests * Syntax update * Push to test * made a change to force action * Update Readme to reflect new workflows * Remove CI folder and files * Update syntax * Fix issues with run rows * Adding workflows for manual execution * Update run on push for tests * Removing workflow * Remove version suffix * Trying a suggestion from user * removed * Reset * Update syntax * Update per docs * Update make statement * Trying to fix some errors * Forgot only one run per statement * Update pylint * enable e2e ENV variable * Updating test script * Update node version requirements * Remove e2e test for now and update test command * adding dateutil to test * set up required modules * Update scripts for testing * Moving tests to new file * Update test Suite for python 3 requirements * Updating requirements.txt to include only necessary packages * Update label * Adding in requirements * Remove dephell from requirements
1 parent 476300f commit acbaa9f

14 files changed

+481
-649
lines changed

.circleci/config.yml

Lines changed: 0 additions & 110 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
pip install -r requirements.txt
2222
pip install python-dateutil backoff monotonic
2323
pip install --user .
24-
sudo pip install pylint==2.8.0 flake8 mock==3.0.5 python-dateutil
24+
sudo pip install pylint==2.8.0 flake8 mock==3.0.5 python-dateutil aiohttp==3.9.1
2525
- name: Run tests
26-
run: make e2e_test
26+
run: python -m unittest discover -s segment
2727

2828
# snyk:
2929
# runs-on: ubuntu-latest

.github/workflows/tests.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,65 @@
1-
name: e2e tests
1+
name: analytics test suite
22

33
on:
44
push:
55
branches:
66
- master
7+
- '**Tests**'
78
paths-ignore:
89
- '**.md'
910
pull_request:
1011
paths-ignore:
11-
- '**.md'
12+
- '**.md'
1213

1314
jobs:
1415
test-setup-python:
1516
name: Test setup-python
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: Checkout
19-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2021

2122
- name: Run with setup-python 3.7
22-
uses: ./
23+
uses: actions/setup-python@v5
2324
with:
24-
python-version: 3.7
25+
python-version: '3.7'
26+
- name: Setup required modules
27+
run: python -m pip install -r requirements.txt
2528
- name: Run tests
26-
run: make test
27-
run: make e2e_test
29+
run: python -m unittest discover -s segment
2830

2931
- name: Run with setup-python 3.8
30-
uses: ./
32+
uses: actions/setup-python@v5
3133
with:
32-
python-version: 3.8
34+
python-version: '3.8'
35+
- name: Setup required modules
36+
run: python -m pip install -r requirements.txt
3337
- name: Run tests
34-
run: make test
35-
run: make e2e_test
38+
run: python -m unittest discover -s segment
3639

3740
- name: Run with setup-python 3.9
38-
uses: ./
41+
uses: actions/setup-python@v5
3942
with:
40-
python-version: 3.9
43+
python-version: '3.9'
44+
- name: Setup required modules
45+
run: python -m pip install -r requirements.txt
4146
- name: Run tests
42-
run: make test
43-
run: make e2e_test
47+
run: python -m unittest discover -s segment
4448

4549
- name: Run with setup-python 3.10
46-
uses: ./
50+
uses: actions/setup-python@v5
4751
with:
48-
python-version: 3.10
52+
python-version: '3.10'
53+
- name: Setup required modules
54+
run: python -m pip install -r requirements.txt
4955
- name: Run tests
50-
run: make test
51-
run: make e2e_test
56+
run: python -m unittest discover -s segment
5257

5358
- name: Run with setup-python 3.11
54-
uses: ./
59+
uses: actions/setup-python@v5
5560
with:
56-
python-version: 3.11
61+
python-version: '3.11'
62+
- name: Setup required modules
63+
run: python -m pip install -r requirements.txt
5764
- name: Run tests
58-
run: make test
59-
run: make e2e_test
65+
run: python -m unittest discover -s segment

0 commit comments

Comments
 (0)