Skip to content

Commit

Permalink
Add python test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre committed Feb 12, 2024
1 parent 7bda706 commit 7ccffce
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/go_test.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Test
on: [push]
on: [ push ]

jobs:
Go:
name: Leader Test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Download Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
- name: Install dependencies
working-directory: ./leader
run: |
go get -v -t -d ./...
Expand All @@ -32,3 +31,25 @@ jobs:
GOPROXY: "https://proxy.golang.org"
working-directory: ./leader
run: go test -v ./...

Python:
name: Datanode Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
working-directory: ./datanode
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
working-directory: ./datanode/src
run: python -m unittest unit_tests.py

0 comments on commit 7ccffce

Please sign in to comment.