Skip to content

Commit 1dda49f

Browse files
committed
OPS: Stop using tox for CI tests
1 parent 8679c55 commit 1dda49f

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/python-ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
- name: Check pyproject.toml file
4545
run: poetry check
4646

47-
- name: Install tox
48-
run: pip install tox
49-
5047
- name: Authenticate with Google Cloud
5148
id: auth
5249
uses: google-github-actions/[email protected]
@@ -56,10 +53,14 @@ jobs:
5653
workload_identity_provider: "projects/437801218871/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
5754
service_account: "[email protected]"
5855

56+
- name: Install package
57+
run: poetry install --all-extras -v
58+
5959
- name: Run tests
60-
env:
61-
GOOGLE_CLOUD_PROJECT: ${{ secrets.TEST_PROJECT_ID }}
62-
run: tox -vv -e py
60+
run: |
61+
poetry run coverage run --source octue -m unittest discover
62+
poetry run coverage report --show-missing
63+
poetry run coverage xml
6364
6465
- name: Upload coverage to Codecov
6566
uses: codecov/codecov-action@v4

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ jobs:
4848
- name: Check pyproject.toml file
4949
run: poetry check
5050

51-
- name: Install tox
52-
run: pip install tox
53-
5451
- name: Authenticate with Google Cloud
5552
id: auth
5653
uses: google-github-actions/[email protected]
@@ -60,10 +57,14 @@ jobs:
6057
workload_identity_provider: "projects/437801218871/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
6158
service_account: "[email protected]"
6259

60+
- name: Install package
61+
run: poetry install --all-extras -v
62+
6363
- name: Run tests
64-
env:
65-
GOOGLE_CLOUD_PROJECT: ${{ secrets.TEST_PROJECT_ID }}
66-
run: tox -vv -e py
64+
run: |
65+
poetry run coverage run --source octue -m unittest discover
66+
poetry run coverage report --show-missing
67+
poetry run coverage xml
6768
6869
- name: Upload coverage to Codecov
6970
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)