Skip to content

Commit

Permalink
testing python unit tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piket committed Nov 1, 2023
1 parent a8eb0a5 commit a6f5b12
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,51 +82,51 @@ jobs:
- name: Test Python
run: pytest -n 8 --cov=./ --cov-report=xml --color=yes sdk/python/tests

unit-test-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Upgrade pip version
run: |
pip install --upgrade "pip>=22.1,<23"
- name: Setup Go
id: setup-go
uses: actions/setup-go@v2
with:
go-version: 1.19.7
- name: Install apache-arrow on ubuntu
run: |
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
sudo apt install -y -V "libarrow-dev=11.0.0-1"
sudo apt install -y -V pkg-config
- name: Test
run: make test-go
# unit-test-go:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup Python
# id: setup-python
# uses: actions/setup-python@v2
# with:
# python-version: "3.8"
# - name: Upgrade pip version
# run: |
# pip install --upgrade "pip>=22.1,<23"
# - name: Setup Go
# id: setup-go
# uses: actions/setup-go@v2
# with:
# go-version: 1.19.7
# - name: Install apache-arrow on ubuntu
# run: |
# sudo apt update
# sudo apt install -y -V ca-certificates lsb-release wget
# wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
# sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
# sudo apt update
# sudo apt install -y -V "libarrow-dev=11.0.0-1"
# sudo apt install -y -V pkg-config
# - name: Test
# run: make test-go

unit-test-ui:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "17.x"
registry-url: "https://registry.npmjs.org"
- name: Install yarn dependencies
working-directory: ./ui
run: yarn install
- name: Build yarn rollup
working-directory: ./ui
run: yarn build:lib
- name: Run yarn tests
working-directory: ./ui
run: yarn test --watchAll=false
# unit-test-ui:
# runs-on: ubuntu-latest
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: "17.x"
# registry-url: "https://registry.npmjs.org"
# - name: Install yarn dependencies
# working-directory: ./ui
# run: yarn install
# - name: Build yarn rollup
# working-directory: ./ui
# run: yarn build:lib
# - name: Run yarn tests
# working-directory: ./ui
# run: yarn test --watchAll=false

0 comments on commit a6f5b12

Please sign in to comment.