-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from dice-group/general_adjustments
General adjustments and documentation update
- Loading branch information
Showing
123 changed files
with
3,472 additions
and
17,868 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,28 @@ | ||
name: Test | ||
name: Python package | ||
|
||
on: [push, pull_request] | ||
on: [push,pull_request] | ||
|
||
jobs: | ||
test: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install tox | ||
id: install-tox | ||
run: | | ||
pip install tox | ||
echo "tox_version=$(pip list | grep tox | tr -d ' ')" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
with: | ||
key: ${{ runner.os }}-${{ steps.install-tox.outputs.tox_version }}-test-${{ hashFiles('environment.yml', 'tox.ini') }} | ||
path: .tox | ||
- name: Test with tox | ||
run: | | ||
tox -o | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
environment-file: environment.yml | ||
|
||
- name: Test with pytest | ||
run: | | ||
wget https://files.dice-research.org/projects/Ontolearn/KGs.zip | ||
unzip KGs.zip | ||
conda run -n test pytest -p no:warnings -x |
Oops, something went wrong.