Skip to content

Commit c149974

Browse files
committed
fix: dev_requirements for gh actions
1 parent 3972f34 commit c149974

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/python-tests.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,30 @@ name: Python tests
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
permissions:
1313
contents: read
1414

1515
jobs:
1616
build:
17-
1817
runs-on: ubuntu-latest
1918
strategy:
2019
matrix:
2120
python-version: ["3.10", "3.11", "3.12"]
2221

2322
steps:
24-
- uses: actions/checkout@v4
25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v4
27-
with:
28-
python-version: ${{ matrix.python-version }}
29-
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33-
- name: Test with unittest
34-
run: |
35-
python -m unittest discover -v tests/
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
32+
- name: Test with unittest
33+
run: |
34+
python -m unittest discover -v tests/

0 commit comments

Comments
 (0)