-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (39 loc) · 1.1 KB
/
Ubuntu.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: pytest-ubuntu
run-name: Run pytest on Ubuntu
on: [push]
jobs:
pytest:
runs-on: self-hosted
strategy:
matrix:
python-version: ["3.7.17", "3.11.4"]
name: pytest-ubuntu-python-${{ matrix.python-version }}
container:
image: ubuntu:latest
volumes:
- /home/actions/oiejq:/github/home/.local/bin
env:
DEB_PYTHON_INSTALL_LAYOUT: deb
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Warsaw
options:
--privileged
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare system
run: |
apt update
apt install -y sqlite3 sqlite3-doc build-essential dpkg texlive-latex-extra ghostscript
sysctl kernel.perf_event_paranoid=-1
- 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]
apt install -y time
- name: Run pytest
run: |
python3 -m pytest -v