-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (44 loc) · 1.3 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
name: CI
on:
schedule:
- cron: "37 0 * * 0" # At 00:37 on every Sunday.
push:
branches:
- main
pull_request:
branches:
- main
# If you trigger a new workflow while the previous one is running,
# this will cancel the previous one.
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# Use matrix strategy to run the tests on multiple Py versions on multiple OSs.
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install the Dependencies
run: |
echo "Installing the dependencies..."
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Check Linter
run: |
echo "Checking linter formatting..."
make lint-check
- name: Run Tests
run: |
echo "Running the tests..."
export PYTHONWARNINGS="ignore" && pytest -v -s -k 'not integration'