Skip to content

fix python version

fix python version #24

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: false
virtualenvs-path: ~/.virtualenvs
installer-parallel: true
- name: Cache poetry virtualenv
uses: actions/cache@v4
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Install terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.5.7"
- name: Install OpenTofu
uses: opentofu/setup-opentofu@v1
- name: Run tests
run: |
poetry run invoke tests
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: reports
path: ${{ github.workspace }}/reports
- name: Send report to commit
if: ${{ always() }}
uses: joonvena/[email protected]
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
only_summary: true
failed_tests_on_top: true