From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gyp/.github/workflows/Python_tests.yml | 30 ++++++++++++++++ .../node-gyp/gyp/.github/workflows/node-gyp.yml | 42 ++++++++++++++++++++++ .../gyp/.github/workflows/nodejs-windows.yml | 27 ++++++++++++++ .../gyp/.github/workflows/release-please.yml | 16 +++++++++ 4 files changed, 115 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml create mode 100644 sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml create mode 100644 sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml create mode 100644 sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/release-please.yml (limited to 'sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows') diff --git a/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml new file mode 100644 index 00000000..92303b63 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml @@ -0,0 +1,30 @@ +# TODO: Enable os: windows-latest +# TODO: Enable pytest --doctest-modules + +name: Python_tests +on: [push, pull_request] +jobs: + Python_tests: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + max-parallel: 8 + matrix: + os: [macos-latest, ubuntu-latest] # , windows-latest] + python-version: [3.6, 3.7, 3.8, 3.9] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_dev.txt + - name: Lint with flake8 + run: flake8 . --ignore=E203,W503 --max-complexity=101 --max-line-length=88 --show-source --statistics + - name: Test with pytest + run: pytest + # - name: Run doctests with pytest + # run: pytest --doctest-modules diff --git a/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml new file mode 100644 index 00000000..bd7c85ff --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml @@ -0,0 +1,42 @@ +name: node-gyp integration + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + python: [3.6, 3.9] + + runs-on: ${{ matrix.os }} + steps: + - name: Clone gyp-next + uses: actions/checkout@v2 + with: + path: gyp-next + - name: Clone nodejs/node-gyp + uses: actions/checkout@v2 + with: + repository: nodejs/node-gyp + path: node-gyp + - uses: actions/setup-node@v2 + with: + node-version: 14.x + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install dependencies + run: | + cd node-gyp + npm install --no-progress + - name: Replace gyp in node-gyp + shell: bash + run: | + rm -rf node-gyp/gyp + cp -r gyp-next node-gyp/gyp + - name: Run tests + run: | + cd node-gyp + npm test diff --git a/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml new file mode 100644 index 00000000..fffe96e3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml @@ -0,0 +1,27 @@ +name: Node.js Windows integration + +on: [push, pull_request] + +jobs: + build-windows: + runs-on: windows-latest + steps: + - name: Clone gyp-next + uses: actions/checkout@v2 + with: + path: gyp-next + - name: Clone nodejs/node + uses: actions/checkout@v2 + with: + repository: nodejs/node + path: node + - name: Install deps + run: choco install nasm + - name: Replace gyp in Node.js + run: | + rm -Recurse node/tools/gyp + cp -Recurse gyp-next node/tools/gyp + - name: Build Node.js + run: | + cd node + ./vcbuild.bat diff --git a/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/release-please.yml b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/release-please.yml new file mode 100644 index 00000000..288afdb3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/node-gyp/gyp/.github/workflows/release-please.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + - main + +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: python + package-name: gyp-next + bump-minor-pre-major: Yes -- cgit v1.2.3