-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade dependency and unify dependency management (#140)
- Loading branch information
Showing
34 changed files
with
10,746 additions
and
1,431 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
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 |
---|---|---|
|
@@ -68,8 +68,7 @@ jobs: | |
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Install | ||
working-directory: website | ||
- working-directory: website | ||
run: | | ||
pnpm install --frozen-lockfile | ||
- uses: pre-commit/[email protected] | ||
|
@@ -88,8 +87,7 @@ jobs: | |
node-version: ${{ env.NODE_VERSION }} | ||
cache: "pnpm" | ||
cache-dependency-path: website/pnpm-lock.yaml | ||
- name: Install and test build | ||
working-directory: website | ||
- working-directory: website | ||
run: | | ||
pnpm install --frozen-lockfile | ||
pnpm lint | ||
|
@@ -103,25 +101,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: meta | ||
- run: tar -xvf meta.tar | ||
- name: Install and test build | ||
working-directory: typegraph | ||
run: | | ||
python3 -m venv ../.venv | ||
source ../.venv/bin/activate | ||
- run: | | ||
tar -xvf meta.tar | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
cd typegraph | ||
poetry install --sync | ||
pytest -s tests | ||
|
@@ -138,15 +135,19 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} | ||
- name: Install and test build | ||
run: | | ||
- run: | | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip3 install ./typegraph | ||
cd typegraph | ||
poetry install --sync | ||
cd .. | ||
cargo run --locked --package meta-cli -- --help | ||
cargo test --locked --package meta-cli | ||
tar -cvf meta.tar target/debug/meta | ||
|
@@ -176,15 +177,19 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} | ||
- name: Install and test build | ||
run: | | ||
- run: | | ||
python3 -m venv .venv | ||
${{ runner.activate }} | ||
pip3 install ./typegraph | ||
${{ matrix.activate }} | ||
cd typegraph | ||
poetry install --sync | ||
cd .. | ||
cargo run --locked --package meta-cli -- --help | ||
cargo test --locked --package meta-cli | ||
|
@@ -239,6 +244,9 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
version: ${{ env.PROTOC_VERSION }} | ||
|
@@ -250,12 +258,13 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: meta | ||
- run: tar -xvf meta.tar | ||
- name: Install and test build | ||
run: | | ||
- run: | | ||
tar -xvf meta.tar | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip3 install ./typegraph | ||
cd typegraph | ||
poetry install --sync | ||
cd .. | ||
deno install -A -n deno_bindgen $DENO_BINDGEN_URL | ||
OUT_DIR=target deno_bindgen -- --locked --package native -F deno | ||
which py-tg | ||
|
@@ -277,19 +286,23 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: meta | ||
- run: tar -xvf meta.tar | ||
- name: Install and test build | ||
run: | | ||
- run: | | ||
tar -xvf meta.tar | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip3 install ./typegraph | ||
cd typegraph | ||
poetry install --sync | ||
cd .. | ||
cargo test --locked --exclude meta-cli --exclude native --workspace | ||
test-docker: | ||
|
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.