Skip to content

Commit

Permalink
Register test to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Mar 26, 2024
1 parent 28993d1 commit b6eaeb9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

container:
image: python:3.12

steps:
- uses: actions/checkout@v3
- name: Install etcd
run: |
wget https://github.com/etcd-io/etcd/releases/download/v3.4.10/etcd-v3.4.10-linux-amd64.tar.gz
tar -xzf etcd-v3.4.10-linux-amd64.tar.gz
mv etcd-v3.4.10-linux-amd64/etcd* /usr/local/bin/
- name: Set up Python as Runtime
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
run: |
python -m test
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ fmt:

lint:
cargo clippy

test:
python -m test

0 comments on commit b6eaeb9

Please sign in to comment.