mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-25 12:01:07 -05:00
Bumps the github-actions group with 6 updates: | Package | From | To | | --- | --- | --- | | [actions/setup-node](https://github.com/actions/setup-node) | `3` | `4` | | [actions/cache](https://github.com/actions/cache) | `3` | `4` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `1` | `2` | | [conda-incubator/setup-miniconda](https://github.com/conda-incubator/setup-miniconda) | `2` | `3` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `3` | `4` | | [dorny/test-reporter](https://github.com/dorny/test-reporter) | `1.6.0` | `1.8.0` | Updates `actions/setup-node` from 3 to 4 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) Updates `actions/cache` from 3 to 4 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) Updates `softprops/action-gh-release` from 1 to 2 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2) Updates `conda-incubator/setup-miniconda` from 2 to 3 - [Release notes](https://github.com/conda-incubator/setup-miniconda/releases) - [Changelog](https://github.com/conda-incubator/setup-miniconda/blob/main/CHANGELOG.md) - [Commits](https://github.com/conda-incubator/setup-miniconda/compare/v2...v3) Updates `actions/upload-artifact` from 3 to 4 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) Updates `dorny/test-reporter` from 1.6.0 to 1.8.0 - [Release notes](https://github.com/dorny/test-reporter/releases) - [Changelog](https://github.com/dorny/test-reporter/blob/main/CHANGELOG.md) - [Commits](https://github.com/dorny/test-reporter/compare/v1.6.0...v1.8.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: softprops/action-gh-release dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: conda-incubator/setup-miniconda dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: dorny/test-reporter dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
93 lines
2.9 KiB
YAML
93 lines
2.9 KiB
YAML
name: "[CI] Test"
|
|
|
|
on:
|
|
push: # Only run on merges into main that modify certain files
|
|
branches:
|
|
- main
|
|
paths:
|
|
- pyscript.core/**
|
|
- .github/workflows/test.yml
|
|
|
|
pull_request: # Only run on merges into main that modify certain files
|
|
branches:
|
|
- main
|
|
paths:
|
|
- pyscript.core/**
|
|
- .github/workflows/test.yml
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
BuildAndTest:
|
|
runs-on: ubuntu-latest-8core
|
|
env:
|
|
MINICONDA_PYTHON_VERSION: py38
|
|
MINICONDA_VERSION: 4.11.0
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 3
|
|
|
|
# display a git log: when you run CI on PRs, github automatically
|
|
# merges the PR into main and run the CI on that commit. The idea
|
|
# here is to show enough of git log to understand what is the
|
|
# actual commit (in the PR) that we are using. See also
|
|
# 'fetch-depth: 3' above.
|
|
- name: git log
|
|
run: git log --graph -3
|
|
|
|
- name: Install node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20.x
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v4
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
|
|
- name: setup Miniconda
|
|
uses: conda-incubator/setup-miniconda@v3
|
|
|
|
- name: Create and activate virtual environment
|
|
run: |
|
|
python3 -m venv test_venv
|
|
source test_venv/bin/activate
|
|
echo PATH=$PATH >> $GITHUB_ENV
|
|
echo VIRTUAL_ENV=$VIRTUAL_ENV >> $GITHUB_ENV
|
|
|
|
- name: Setup dependencies in virtual environment
|
|
run: |
|
|
make setup
|
|
|
|
- name: Build
|
|
run: make build
|
|
|
|
- name: Integration Tests
|
|
#run: make test-integration-parallel
|
|
run: |
|
|
make test-integration
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pyscript
|
|
path: |
|
|
pyscript.core/dist/
|
|
if-no-files-found: error
|
|
retention-days: 7
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: success() || failure()
|
|
with:
|
|
name: test_results
|
|
path: test_results/
|
|
if-no-files-found: error
|