Skip to content

Commit

Permalink
ATP v3 update (#105)
Browse files Browse the repository at this point in the history
* 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
jaredoconnell authored Oct 13, 2023
1 parent a4e4c17 commit 8b656dc
Show file tree
Hide file tree
Showing 6 changed files with 477 additions and 182 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,20 +32,36 @@ jobs:
isort --profile black .
black .
flake8 .
- name: Install Python Poetry
uses: snok/install-poetry@v1.3.4
- 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'}}
Expand Down
Loading

0 comments on commit 8b656dc

Please sign in to comment.