From 3329b738bb19a396028766a5622ab4dbac9ec2ef Mon Sep 17 00:00:00 2001 From: Pyry Lahtinen Date: Sun, 11 Dec 2022 14:53:04 +0000 Subject: [PATCH] Config GitHub Actions --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1df325b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: main + pull_request: + branches: main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.10 + - name: Install Poetry + run: pip install poetry + - name: Init environment + run: poetry install + - name: Unit tests + run: poetry run pytest src