Skip to content

Commit d5eda9f

Browse files
committed
Update CI
1 parent f00e568 commit d5eda9f

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ 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

2018
jobs:
21-
build-and-test-python3:
19+
build-and-test:
2220
runs-on: ubuntu-latest
2321
steps:
2422
- uses: actions/checkout@v4
@@ -28,12 +26,17 @@ 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
3538
36-
run-integration-tests-python3:
39+
run-integration-tests:
3740
runs-on: ubuntu-latest
3841
if: ${{ github.ref == 'refs/heads/master' }}
3942
steps:
@@ -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

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)