-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Address former PR review comments * Upgrade to new type of ATP * Added more test cases for ATP * Fix missing input for step call * Attempt at exporting log file of poetry * Upload entire directory * Change upload to all log files * Fix yaml * Try installing dependency for poetry * Install another dependency * Replace sections with the format used in docsgen CI * Fix mistakes in CI * Update function to include run ID
- Loading branch information
1 parent
a4e4c17
commit 8b656dc
Showing
6 changed files
with
477 additions
and
182 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: [ '3.9', '3.10', 'pypy3.9' ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
@@ -32,20 +32,36 @@ jobs: | |
isort --profile black . | ||
black . | ||
flake8 . | ||
- name: Install Python Poetry | ||
uses: snok/[email protected] | ||
- name: Install project dependencies | ||
run: poetry install --no-interaction --with dev | ||
- name: Install poetry | ||
run: | | ||
python -m pip install poetry==1.4.2 | ||
- name: Configure poetry | ||
run: | | ||
python -m poetry config virtualenvs.in-project true | ||
- name: Upload logs on failure | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: logs | ||
path: "*.log" | ||
- name: Cache the virtualenv | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./.venv | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} | ||
- name: Install dependencies | ||
run: | | ||
python -m poetry install | ||
- name: Run tests with coverage | ||
run: | | ||
# Run the unit tests | ||
poetry run python3 -m coverage run -a -m unittest discover -v src | ||
python -m poetry run coverage run -a -m unittest discover -v src | ||
# Run the example plugin | ||
poetry run python3 -m coverage run -a ./example_plugin.py -f example.yaml | ||
python -m poetry run coverage run -a ./example_plugin.py -f example.yaml | ||
# Test the example plugin | ||
poetry run python3 -m coverage run -a ./test_example_plugin.py | ||
python -m poetry run coverage run -a ./test_example_plugin.py | ||
# Generate the coverage HTML report | ||
poetry run python3 -m coverage html | ||
python -m poetry run coverage html | ||
- name: Publish coverage report to job summary | ||
# publishing only once | ||
if: ${{ matrix.python-version == '3.9'}} | ||
|
Oops, something went wrong.