Skip to content

Commit 5505e43

Browse files
feat: parallel (#2)
* feat: parallel * chore: upd * chore: fix cicd * feat: enable integration tests * chore: fix * chore: upd pr workflow
1 parent 6ffff29 commit 5505e43

File tree

6 files changed

+770
-595
lines changed

6 files changed

+770
-595
lines changed

.github/workflows/pr.yml

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
python-version: ${{ matrix.python-version }}
2323

2424
- name: Cache pip dependencies
25-
uses: actions/cache@v3
25+
uses: actions/cache@v4
2626
with:
2727
path: ~/.cache/pip
2828
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
@@ -33,6 +33,7 @@ jobs:
3333
run: |
3434
python -m pip install --upgrade pip
3535
pip install -e ".[dev]"
36+
pip install build
3637
3738
- name: Lint with flake8
3839
run: |
@@ -49,44 +50,21 @@ jobs:
4950
run: |
5051
mypy src/lingodotdev
5152
53+
- name: Validate package builds
54+
run: |
55+
python -m build
56+
5257
- name: Test with pytest
58+
env:
59+
LINGODOTDEV_API_KEY: ${{ secrets.LINGODOTDEV_API_KEY }}
5360
run: |
5461
pytest --cov=src/lingodotdev --cov-report=xml --cov-report=term-missing
5562
5663
- name: Upload coverage to Codecov
5764
if: matrix.python-version == '3.11'
58-
uses: codecov/codecov-action@v3
65+
uses: codecov/codecov-action@v4
5966
with:
6067
file: ./coverage.xml
6168
flags: unittests
6269
name: codecov-umbrella
63-
fail_ci_if_error: false
64-
65-
build:
66-
name: Build package
67-
runs-on: ubuntu-latest
68-
needs: test
69-
70-
steps:
71-
- name: Checkout code
72-
uses: actions/checkout@v4
73-
74-
- name: Set up Python
75-
uses: actions/setup-python@v4
76-
with:
77-
python-version: '3.11'
78-
79-
- name: Install build dependencies
80-
run: |
81-
python -m pip install --upgrade pip
82-
pip install build
83-
84-
- name: Build package
85-
run: |
86-
python -m build
87-
88-
- name: Upload build artifacts
89-
uses: actions/upload-artifact@v3
90-
with:
91-
name: dist
92-
path: dist/
70+
fail_ci_if_error: false

0 commit comments

Comments
 (0)