Bump model-bakery from 1.14.0 to 1.15.0 #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python 🐍 package 📦 test | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
get-python-versions: | |
runs-on: ubuntu-latest | |
outputs: | |
python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }} | |
steps: | |
- uses: snok/latest-python-versions@v1 | |
id: get-python-versions-action | |
with: | |
min-version: 3.8 | |
test: | |
needs: [get-python-versions] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Load cached Poetry installation | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local # the path depends on the OS | |
key: poetry-0 # increment to reset cache | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Specify Poetry Python version | |
run: poetry env use ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: poetry install --with test --no-interaction | |
- name: Run tests | |
run: poetry run pytest --cov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |