Skip to content

Commit

Permalink
Fix GH actions workflow
Browse files Browse the repository at this point in the history
We need to generate the version at the right moment, before full
requirements need to be installed.
  • Loading branch information
alanfranz committed Mar 26, 2024
1 parent 5b5f3da commit b507269
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
python-version: '3.11'
cache: 'pip'

- name: Install testing requirements
run: pip install -r requirements.testing.txt

- name: generate version
run: make generate_version_from_git

- name: Install requirements
run: pip install -r requirements.txt

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install testing requirements
run: pip install -r requirements.testing.txt

- name: generate version
run: make generate_version_from_git

- name: Install requirements
run: pip install -e '.[cassandra]'

- name: Install testing requirements (not included by default in normal install)
run: pip install -r requirements.testing.txt

- name: Execute unit-tests
run: make generate_version_from_git unittest
run: make unittest

- id: upload-codecov
# Third-party action pinned to v2.1.0
Expand Down

0 comments on commit b507269

Please sign in to comment.