Skip to content

Commit de34794

Browse files
authored
Add workflow for Arch Linux (#33)
* Add workflow for Arch Linux * Fix typo in diffutils * Rename test for github runners * Add verbose output to pytest
1 parent ba50711 commit de34794

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/Arch.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pytest-arch
2+
run-name: Run pytest on Arch Linux
3+
on: [push]
4+
jobs:
5+
pytest:
6+
runs-on: self-hosted
7+
container:
8+
image: archlinux:latest
9+
volumes:
10+
- /home/actions/oiejq:/github/home/.local/bin
11+
options:
12+
--privileged
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Prepare system
17+
run: |
18+
sysctl kernel.perf_event_paranoid=-1
19+
pacman -Syu --noconfirm diffutils time gcc
20+
- name: Set up Python 3.11
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.11
24+
- name: Install dependencies
25+
run: |
26+
pip3 install .[tests]
27+
- name: Run pytest
28+
run: |
29+
python3 -m pytest -v

.github/workflows/GithubRunner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pytest-github-runner
2-
run-name: Run tests that don't work on self hosted runner
2+
run-name: Run tests for GitHub Runner
33
on: [push]
44
jobs:
55
pytest:

0 commit comments

Comments
 (0)