Merge pull request #99 from gridhead/unit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |