Skip to content

Bump docker/setup-buildx-action from 1.7.0 to 3.3.0 #21

Bump docker/setup-buildx-action from 1.7.0 to 3.3.0

Bump docker/setup-buildx-action from 1.7.0 to 3.3.0 #21

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.11.2"
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: cache
with:
path: |
.venv
~/.cache/pre-commit
key: venv-1
- run: |
python -m venv .venv --upgrade-deps
source .venv/bin/activate
pip install pre-commit
if: steps.cache.outputs.cache-hit != 'true'
- continue-on-error: true
run: |
source .venv/bin/activate
pre-commit run --all-files
test:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0
ref: ${{ github.ref }}
persist-credentials: false
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.11.2"
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: cache
with:
path: |
~/.local
.venv
key: ${{ hashFiles('**/poetry.lock') }}-1
- uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b # v1.3.4
with:
virtualenvs-in-project: true
- name: install dependencies
id: install-deps
continue-on-error: true
run: |
poetry config virtualenvs.create true
poetry install --no-interaction --no-root
- run: poetry install --no-interaction --no-root
if: steps.cache.outputs.cache-hit != 'true'
- run: source $VENV && pytest main_tests.py --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true