-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust cache and progressbar in docs
- Loading branch information
Showing
5 changed files
with
1,884 additions
and
1,727 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 |
---|---|---|
|
@@ -66,7 +66,7 @@ jobs: | |
path: | | ||
~/.local | ||
.venv | ||
key: poetry-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }} | ||
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Install and configure Poetry | ||
uses: snok/[email protected] | ||
|
@@ -86,15 +86,15 @@ jobs: | |
~/.cache/traffic/ | ||
~/.cache/opensky/ | ||
~/.cache/cartes/ | ||
key: traffic-${{ runner.os }} | ||
key: traffic-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Cache folder for documentation | ||
uses: actions/cache@v4 | ||
id: docs-folder | ||
with: | ||
path: | | ||
docs/_build/ | ||
key: docs-${{ runner.os }} | ||
key: docs-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Ubuntu system dependencies | ||
run: | | ||
|
@@ -137,6 +137,8 @@ jobs: | |
export TRAFFIC_CONFIG=$(poetry run python -c "from traffic import config_file; print(config_file)") | ||
sed -i "/tqdm_tyle =/ s,auto,disable," $TRAFFIC_CONFIG | ||
sed -i "/nm_path =/ s,=$,= $PWD/traffic_data/airac_2111," $TRAFFIC_CONFIG | ||
# sed -i "/pkcs12_filename =/ s,=.*$,= $PWD/traffic_data/CC0000007011_501_openssl.p12," $TRAFFIC_CONFIG | ||
# sed -i "/pkcs12_password =/ s,=$,= $PKCS12_PASSWORD," $TRAFFIC_CONFIG | ||
|
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,14 +15,26 @@ env: | |
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest # ${{ matrix.os }} | ||
name: python-${{ matrix.python-version }} on ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
# os: [ubuntu-latest, macos-latest, windows-latest] | ||
# onnxruntime needed for 3.11 | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
os: | ||
- ubuntu-latest | ||
# - windows-latest | ||
# - macos-latest | ||
python-version: | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
fail-fast: false | ||
|
||
env: | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -75,7 +87,7 @@ jobs: | |
path: | | ||
~/.local | ||
.venv | ||
key: poetry-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }} | ||
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Install and configure Poetry | ||
uses: snok/[email protected] | ||
|
@@ -95,7 +107,7 @@ jobs: | |
~/.cache/traffic/ | ||
~/.cache/opensky/ | ||
~/.cache/cartes/ | ||
key: traffic-${{ runner.os }} | ||
key: traffic-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Ubuntu system dependencies | ||
run: | | ||
|
@@ -121,6 +133,7 @@ jobs: | |
poetry run mypy src tests | ||
- name: Run tests | ||
if: ${{ matrix.python-version == '3.12' || steps.cache-folder.outputs.cache-hit == 'true' }} | ||
env: | ||
LD_LIBRARY_PATH: /usr/local/lib | ||
TRAFFIC_NOPLUGIN: "" | ||
|
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
Oops, something went wrong.