Add automatic tests with Github Actions #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: "tox.yml" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
TOXENV: ${{ matrix.test }} | |
RUN_INTEGRATION_TESTS: ${{ matrix.test_number}} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: pip install "tox" | |
- run: pip install bandit | |
- run: pip install codecov | |
- run: pip install slugs | |
- run: sudo chmod -R 777 /usr/local/lib/ | |
- run: python3 setup.py install | |
- run: ./.travis/run.sh | |
- run: codecov | |
strategy: | |
matrix: | |
test: ["pep8", "bandit", "docs"] | |
os: [ubuntu-22.04,ubuntu-20.04] | |
include: | |
- test: "py38" | |
test_number: "0" | |
os: ubuntu-20.04 | |
- test: "py38" | |
test_number: "1" | |
os: ubuntu-20.04 | |
- test: "py310" | |
test_number: "0" | |
os: ubuntu-22.04 | |
- test: "py310" | |
test_number: "1" | |
os: ubuntu-22.04 |