Skip to content

Run pytest on Arch Linux #453

Run pytest on Arch Linux

Run pytest on Arch Linux #453

Workflow file for this run

name: pytest-arch
run-name: Run pytest on Arch Linux
on: [push]
jobs:
pytest:
runs-on: self-hosted
strategy:
matrix:
python-version: ["3.7.17", "3.11.4"]
name: pytest-arch-python-${{ matrix.python-version }}
container:
image: archlinux:latest
volumes:
- /home/actions/oiejq:/github/home/.local/bin
options:
--privileged
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare system
run: |
sysctl kernel.perf_event_paranoid=-1
pacman -Syu --noconfirm diffutils time gcc dpkg
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip3 install .[tests]
- name: Run pytest
run: |
python3 -m pytest -v