Skip to content

Commit

Permalink
Try multiple versions and update strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 19, 2024
1 parent 9a2e5a3 commit 8e183af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
pip install poetry
poetry install --with dev
- name: Check for outdated dependencies
if: env.skip-job != 'true'
run: |
poetry show --outdated --only main
- name: Run tests with coverage in latest stable 3.x
run: |
poetry run pytest --cov=app --cov-report=term-missing
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/compatability-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:

strategy:
matrix:
python-version: [3.11, 3.12, 3.x]
python-version: [3.12, 3.x]
update-strategy: [none, minor, major]

env:
MUST_RUN_VERSION: "3.12"
Expand Down Expand Up @@ -40,25 +41,24 @@ jobs:
fi
fi
- name: Install dependencies
- name: Install Poetry
if: env.skip-job != 'true'
run: |
pip install poetry
poetry install --with dev
- name: Check for outdated dependencies
if: env.skip-job != 'true'
run: |
poetry show --outdated --only main
- name: Update dependencies to the latest allowed versions
- name: Install dependencies
if: env.skip-job != 'true'
run: |
poetry update
echo "Dependencies updated"
if [[ "${{ matrix.update-strategy }}" == "none" ]]; then
poetry install --no-update --with dev
elif [[ "${{ matrix.update-strategy }}" == "minor" ]]; then
poetry update --minor
elif [[ "${{ matrix.update-strategy }}" == "major" ]]; then
poetry update
fi
- name: Run tests
if: env.skip-job != 'true'
run: |
poetry run pytest
continue-on-error: false
continue-on-error: false

0 comments on commit 8e183af

Please sign in to comment.