diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml deleted file mode 100644 index d0fccbe..0000000 --- a/.gitea/workflows/build.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# name: Gitea Actions Demo -# run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 -# on: [push] -# jobs: -# Explore-Gitea-Actions: -# runs-on: ubuntu-latest -# steps: -# - name: Check out repository code -# uses: actions/checkout@v3 -# - name: List files in the repository -# run: | -# ls ${{ github.workspace }} \ No newline at end of file diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..35724b3 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,19 @@ +name: Test +run-name: ${{ github.actor }} running tests +on: [push] +jobs: + Test: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install Python 3 + uses: actions/setup-python@v1 + with: + python-version: 3.10 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + - name: Run tests + run: python -m unittest