-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (28 loc) · 913 Bytes
/
test_package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test python package
# Allow to trigger the workflow manually (e.g. when deps changes)
on: [push, workflow_dispatch]
jobs:
package-test-job:
runs-on: ubuntu-latest
timeout-minutes: 20
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build the python package
run: |
pip install --upgrade pip
pip --version
pip install --upgrade build
python -m build
- name: Test the python package
run: |
pip install --upgrade "dist/"*".whl"
pip freeze
python -c "import dataset_grouper; print(dataset_grouper.prepare_test_tfrecord_dataset())"
python -c "import dataset_grouper; print(dataset_grouper.__version__)"