Make Vagrant use Tinystage #1115
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
on: | |
push: | |
branches: | |
- stable | |
- dev | |
pull_request: | |
branches: | |
- stable | |
- dev | |
name: Tests | |
jobs: | |
misc_tests: | |
name: Misc tests | |
container: | |
image: fedorapython/fedora-python-tox | |
options: --user 1001:1001 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run tests | |
run: tox -e ${{ matrix.tox_env }} | |
strategy: | |
matrix: | |
tox_env: | |
- lint | |
- format | |
- licenses | |
- security | |
- docs | |
runs-on: ubuntu-latest | |
unit_test: | |
name: Unit tests | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Mark the directory as safe for git | |
run: git config --global --add safe.directory $PWD | |
- name: Run tests | |
run: tox -e ${{ matrix.tox_env }} | |
strategy: | |
matrix: | |
tox_env: | |
- py39-unittest | |
- py310-unittest | |
runs-on: ubuntu-latest | |
integration_test: | |
name: Integration tests | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install RabbitMQ | |
uses: mer-team/rabbitmq-mng-action@v1.2 | |
with: | |
RABBITMQ_TAG: "3-management-alpine" | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Tox | |
run: pip install tox | |
- name: Run integration tests | |
# Run tox using the version of Python in `PATH` | |
run: tox -e py-integration | |
strategy: | |
matrix: | |
python: | |
- "3.9" | |
- "3.10" | |
runs-on: ubuntu-latest |