chore: bump versions for actions for the release pipeline (#65) #264
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: "CI" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wistia/[email protected] | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_TOOL_VERSION }} | |
- name: Linting | |
run: | | |
pip install pre-commit | |
pre-commit run --all-files | |
Tests: | |
name: Run the tests against .tool-versions python | |
needs: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wistia/[email protected] | |
- uses: extractions/setup-just@v1 | |
with: | |
just-version: ${{ env.JUST_TOOL_VERSION }} | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: ${{ env.POETRY_TOOL_VERSION }} | |
virtualenvs-in-project: true | |
- name: Set up Python ${{ env.PYTHON_TOOL_VERSION }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_TOOL_VERSION }} | |
cache: poetry | |
- name: Install dependencies | |
shell: bash | |
run: poetry install | |
- name: Pytest run | |
run: just test -v | |
OldestPython: | |
name: Run the tests against python 3.9 (oldest supported version) | |
needs: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wistia/[email protected] | |
- uses: extractions/setup-just@v1 | |
with: | |
just-version: ${{ env.JUST_TOOL_VERSION }} | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: ${{ env.POETRY_TOOL_VERSION }} | |
virtualenvs-in-project: true | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
cache: poetry | |
- name: Install dependencies | |
shell: bash | |
run: poetry install | |
- name: Pytest run | |
run: just test -v |