-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 796 Bytes
/
Copy pathmain.yml
File metadata and controls
28 lines (27 loc) · 796 Bytes
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
name: Continuous Integration
on: [push]
jobs:
build:
runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: [3.10, 3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python all python version
uses: actions/setup-python@v4
with:
# python-version: ${{ matrix.python-version }}
python-version: 3.11
architecture: x64
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run Test
run: python -m unittest tests/sum_test.py
# Add a conditional step to check test status
# - name: Check Test Status
# run: |
# if [ $? -ne 0 ]; then
# echo "Tests failed. Blocking the push."
# exit 1
# fi