-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.01 KB
/
Copy pathci.yml
File metadata and controls
32 lines (32 loc) · 1.01 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
name: Test code
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
name: Tests
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
# Setup workspace
- run: set -e
- run: python3 --version
- run: pip3 install --upgrade setuptools pip
- run: pip3 install -r requirements.txt
- run: pip3 install -e . --no-deps
# name: Test example algorithm
- run: python3 examples/print_time.py --start-date 2017-01-01 --end-date 2017-01-02
- run: pip3 install -r tests/requirements.txt
# Run Tests
- run: python3 -m unittest tests/unit/tests.py
- run: python3 -m unittest tests/integration/tests.py
- run: pip3 install -r version_hashes.txt
# Check syntax
- run: sudo apt-get install flake8
- run: flake8 .