Skip to content

chore(deps): bump actions/setup-python from 4 to 5 #485

chore(deps): bump actions/setup-python from 4 to 5

chore(deps): bump actions/setup-python from 4 to 5 #485

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
pytest:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: cpython_setup
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: pytest (linux/macos)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: |
python -m venv .venv
source .venv/bin/activate
echo "VIRTUAL_ENV: $VIRTUAL_ENV"
pip install --upgrade pip
pip install '.[test]'
coverage run -m pytest -s -vv
coverage html
- name: pytest (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
python -m venv .venv
.venv/Scripts/Activate.ps1
echo "VIRTUAL_ENV: $VIRTUAL_ENV"
python -m pip install --upgrade pip
pip install '.[test]'
coverage run -m pytest -s -vv
coverage html
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: htmlcov
action:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: cpython_setup
with:
python-version: ${{ matrix.python-version }}
cache: pip
# Note: I'm using pip, for faster CI. But you can also uses pipx:
# Example:
# - run: pipx install creosote --python '${{ steps.cpython_setup.outputs.python-path }}'
- run: pip install --upgrade creosote
- name: run creosote (linux/macos)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: |
python -m venv .venv
source .venv/bin/activate
echo "VIRTUAL_ENV: $VIRTUAL_ENV"
pip install --upgrade .
creosote --venv .venv
- name: run creosote (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
python -m venv .venv
.venv/Scripts/Activate.ps1
Write-Host "VIRTUAL_ENV: $env:VIRTUAL_ENV"
pip install --upgrade .
creosote --venv .venv