Skip to content

Run tests with Tox #101

Run tests with Tox

Run tests with Tox #101

Workflow file for this run

name: Testing with Tox
on:
workflow_dispatch:
pull_request:
push:
branches:
- "Development"
- "test_tox"
jobs:
test:
# runs-on: ${{matrix.os}}
# runs-on: self-hosted
runs-on: arc-runner-k8s
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.11']
node-version: [18.x]
mongodb-version: ['6.0']
steps:
- name: Update git
run: |
apt update
apt install git -y
git --version
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions --root-user-action=ignore
- name: Test with tox
run: |
tox run
# - name: Delete MongoDB
# run: |
# docker stop mongodb
# docker rm mongodb
# docker system prune -f
# - name: 'Cleanup build folder'
# run: |
# ls -la ./
# rm -rf ./* || true
# rm -rf ./.??* || true
# ls -la ./