Skip to content

Test build in CI #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/release-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install latest NPM
run: |
npm install -g npm@latest
npm --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -r requirements/build-pkg.txt
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
43 changes: 35 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install latest NPM
run: |
npm install -g npm@latest
npm --version
- name: Install Python Dependencies
run: pip install -r requirements/test-run.txt
- name: Run Tests
run: |
npm install -g npm@v7.13.0
nox -s test -- --headless
run: nox -s test -- --headless
test-python-versions:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -45,24 +47,28 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install latest NPM
run: |
npm install -g npm@latest
npm --version
- name: Install Python Dependencies
run: pip install -r requirements/test-run.txt
- name: Run Tests
run: |
npm install -g npm@v7.13.0
nox -s test -- --headless --no-cov
run: nox -s test -- --headless --no-cov
test-javascript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install latest NPM
run: |
npm install -g npm@latest
npm --version
- name: Test Javascript
working-directory: ./src/idom/client/app
run: |
npm --version
npm install -g npm@v7.13.0
npm install
npm test
npm run build
Expand All @@ -77,3 +83,24 @@ jobs:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Build Docker Image
run: docker build . --file docs/Dockerfile
test-build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "14"
- name: Use Latest Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install latest NPM
run: |
npm install -g npm@latest
npm --version
- name: Install Python Dependencies
run: |
pip install --upgrade pip
pip install -r requirements/build-pkg.txt
- name: Test Build Creation
run: python setup.py bdist_wheel sdist
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
pre-commit
twine
wheel
setuptools_scm
-r requirements/build-docs.txt
-r requirements/build-pkg.txt
-r requirements/check-style.txt
-r requirements/check-types.txt
-r requirements/pkg-deps.txt
Expand Down
4 changes: 4 additions & 0 deletions requirements/build-pkg.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pre-commit
twine
wheel
setuptools_scm