Skip to content

Commit 08e3bf5

Browse files
init
1 parent f41bfb2 commit 08e3bf5

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
steps:
2525
- name: Build distribution
2626
run: |
27+
python -m pip install -U pip
2728
python -m pip install -U build
2829
python -m build
2930

.github/workflows/test-worker.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,38 @@ on: [ push, pull_request ]
44

55
jobs:
66
build:
7+
78
name: Run tests
89
runs-on: ubuntu-latest
910
strategy:
1011
matrix:
1112
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.x"]
1213

14+
1315
steps:
1416
- uses: actions/checkout@v3
17+
1518
- name: Set up Python ${{ matrix.python-version }}
1619
uses: actions/setup-python@v4
1720
with:
1821
python-version: ${{ matrix.python-version }}
22+
1923
- name: Install dependencies
2024
run: |
21-
python -m pip install --upgrade pip
22-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
python -m pip install -U pip
26+
python -m pip install -U coverage pytest pytest-cov
27+
python -m pip install -r requirements.txt
28+
2329
- name: Lint with Ruff
2430
run: |
25-
pip install ruff
31+
python -m pip install -U ruff
2632
ruff --format=github --target-version=py311 .
2733
continue-on-error: true
34+
2835
- name: Test with pytest
2936
run: |
3037
coverage run -m pytest -v -s
38+
3139
- name: Generate Coverage Report
3240
run: |
3341
coverage report -m

requirements.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
coverage==7.3.2
2-
iniconfig==2.0.0
3-
packaging==23.2
4-
pluggy==1.3.0
5-
pytest==7.4.3
6-
pytest-cov==4.1.0

0 commit comments

Comments
 (0)