Merge pull request #5 from northpowered/3-extra-fields-in-execution-r… #11
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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
linters: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Installing flake8 | |
run: | | |
pip install poetry | |
poetry config virtualenvs.create false | |
poetry install --with dev --no-root | |
- name: Lint | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 src --show-source --statistics | |
# exit-zero treats all errors as warnings | |
flake8 src --count --exit-zero --statistics | |
integration: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry config virtualenvs.create false | |
poetry install --with test --no-root | |
- name: Run integration tests | |
run: poetry run pytest src --cov | |
- name: Upload Codecov | |
uses: codecov/codecov-action@v3 |