cd808dc3dd
/ test (push) Successful in 9m10s
Extend CleverSwarm codebase with PDF and Machine and Worker IDs ISSUES CLOSED: #1
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
on: [push]
|
|
|
|
env:
|
|
BUILD_DIR: "."
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
|
|
container:
|
|
image: modjular/modjular-python-testing:3.13
|
|
|
|
steps:
|
|
- name: Test Echo
|
|
run: echo 'Starting up the tests...'
|
|
|
|
- name: Check version and distribution
|
|
run: |
|
|
uname -srm
|
|
cat /etc/os-release
|
|
|
|
- name: Install pyenv and nodejs
|
|
run: |
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential git nodejs npm -y
|
|
pyenv install 3.10.18 && pyenv local 3.10.18
|
|
pyenv install 3.11.13 && pyenv local 3.11.13
|
|
pyenv install 3.12.10 && pyenv local 3.12.10
|
|
pyenv install 3.13.5 && pyenv local 3.13.5
|
|
|
|
- name: Clone Repository
|
|
id: clone
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
ssh-known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
|
|
|
- name: Install requirements
|
|
id: install
|
|
run: |
|
|
pyenv local 3.10.18
|
|
pip install -r requirements-dev.txt
|
|
pip install tox
|
|
pyenv local 3.11.13
|
|
pip install -r requirements-dev.txt
|
|
pip install tox
|
|
pyenv local 3.12.10
|
|
pip install -r requirements-dev.txt
|
|
pip install tox
|
|
pyenv local 3.13.5
|
|
pip install -r requirements-dev.txt
|
|
pip install tox
|
|
|
|
- name: Run the tests
|
|
run: |
|
|
pyenv local 3.10.18 3.11.13 3.12.10 3.13.5
|
|
tox -e lint,py310,py311,py312,py313,coverage -p all
|
|
|
|
- name: Upload coverage artifacts
|
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: coverage-reports
|
|
path: |
|
|
unit_tests_report.xml
|
|
unit_tests_report.html
|
|
coverage_report.xml
|
|
htmlcov
|