Bump python runtime 3.11 #40
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: New Relic - AWS Logs Ingestion - Pull Request | |
on: [pull_request] | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
poetry-version: ["1.4"] | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install Project | |
run: poetry install --no-interaction | |
- name: Lint | |
run: | | |
poetry run flake8 src test | |
poetry run black --check src test | |
test: | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
poetry-version: ["1.4"] | |
os: [ubuntu-20.04, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install Project | |
run: poetry install --no-interaction | |
- name: Test | |
run: poetry run pytest |