forked from gridhead/syncstar
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.02 KB
/
test.yml
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
---
name: syncstar
on: [push, pull_request]
jobs:
ci-test:
strategy:
fail-fast: false
matrix:
tox-env: ["py310", "py311", "py312", "py313"]
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install the base dependencies
run: |
python3 -m pip install --upgrade tox
- name: Set up user for running the testcases
run: |
useradd testrunner
chown -R testrunner .
- name: Check if the YAML file is in the correct place
run: |
su testrunner -c "ls -lha /__w/syncstar/syncstar/syncstar/config/images.yml"
- name: Check if the Python binary is in the correct place
run: |
su testrunner -c "ls -lha /usr/bin/python3"
- name: Execute tox
run: |
su testrunner -c "tox -e ${{ matrix.tox-env }}"
env:
SYNCSTAR_ISOSYAML: "/__w/syncstar/syncstar/syncstar/config/images.yml"