Skip to content

Commit 3a9d5ea

Browse files
committed
Update CI
1 parent f00e568 commit 3a9d5ea

File tree

4 files changed

+15
-34
lines changed

4 files changed

+15
-34
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ permissions:
1212
contents: read
1313

1414
env:
15-
mock_version_python3: "5.0.1"
16-
requests_version_python3: "2.28.2"
1715
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
1816
API_KEY: ${{ secrets.API_KEY }}
1917

@@ -28,7 +26,12 @@ jobs:
2826
python-version: "3.10.14"
2927
- name: Install test dependencies
3028
run: |
31-
pip install requests=="${{ env.requests_version_python3 }}"
29+
pip install -e .
30+
pip install -r requirements-dev.txt
31+
- name: Run linters
32+
run: |
33+
pip install -U pre-commit
34+
pre-commit run -v --all-files
3235
- name: Run tests
3336
run: |
3437
python -m unittest discover
@@ -42,7 +45,7 @@ jobs:
4245
uses: actions/setup-python@v3
4346
with:
4447
python-version: "3.10.14"
45-
- name: run-integration-tests-python3
48+
- name: Run integration tests
4649
run: |
47-
pip3 install .
48-
python3 test_integration_app/main.py
50+
pip install .
51+
python test_integration_app/main.py

.github/workflows/publishing2PyPI.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ jobs:
2727
fi
2828
- name: Create distribution files
2929
run: |
30-
python3 setup.py sdist
30+
python -m pip install build
31+
python -m build
3132
- name: Upload distribution files
3233
env:
3334
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3435
TWINE_USER: ${{ secrets.USER }}
3536
run: |
36-
python3 -m pip install --user --upgrade twine
37-
ls dist/ | xargs -I % python3 -m twine upload --repository pypi dist/%
37+
python -m pip install --user --upgrade twine
38+
ls dist/ | xargs -I % python -m twine upload --repository pypi dist/%

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
```sh
88
# install necessary Python version
9-
pyenv install 3.13.2
9+
pyenv install 3.13.2
1010

11-
# create a virtual enviroment
11+
# create a virtual environment
1212
pyenv virtualenv 3.13.2 v3.13
1313
pyenv activate v3.13
1414
```

0 commit comments

Comments
 (0)