Run tests with Tox #100
Workflow file for this run
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: 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: | |
- 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 ./ |