From 40d7573c7191d97e420d2dd1442be3e696aa3598 Mon Sep 17 00:00:00 2001 From: cadl Date: Sun, 7 Apr 2024 12:03:41 +0800 Subject: [PATCH] move ci to github action --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f8cd80e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: test +on: + pull_request: + branches-ignore: + - "release-**" + +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + matrix: + python-version: ['3.6', '3.7', '3.8', '3.9'] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + check-latest: true + - name: Install dependencies + run: | + sudo apt-get install -y zstd + pip install -e .[test] + - name: Test with pytest + run: | + py.test -v -s tests