Skip to content

Bump pytest from 7.4.4 to 8.0.0 #110

Bump pytest from 7.4.4 to 8.0.0

Bump pytest from 7.4.4 to 8.0.0 #110

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: examples
on:
push:
branches: ["main"]
paths:
- "**.py"
- "**.txt"
- ".github/workflows/examples.yml"
- "**.toml"
pull_request:
paths:
- "**.py"
- "**.txt"
- "**.toml"
- ".github/workflows/examples.yml"
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
myworker:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
steps:
- name: Install apt packages
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/setup.py'
- name: Install dependencies
working-directory: examples/myworker
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
working-directory: examples/myworker
timeout-minutes: 10
run: |
pytest -vv tests -n auto
range:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
steps:
- name: Install apt packages
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/setup.py'
- name: Install dependencies
working-directory: examples/range
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
working-directory: examples/range
timeout-minutes: 10
run: |
pytest -vv tests -n auto
rabbitmq_management:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
steps:
- name: Install apt packages
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/setup.py'
- name: Install dependencies
working-directory: examples/rabbitmq_management
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
working-directory: examples/rabbitmq_management
timeout-minutes: 10
run: |
pytest -vv tests -n auto
django:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
steps:
- name: Install apt packages
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/setup.py'
- name: Install dependencies
working-directory: examples/django
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Migrations
working-directory: examples/django
run: |
./manage.py migrate
- name: Run tests
working-directory: examples/django
timeout-minutes: 10
run: |
export DJANGO_SETTINGS_MODULE=proj.settings
pytest -vv tests -n auto