From 6e6d085df63d97dfd6833768d6e7c384071e8760 Mon Sep 17 00:00:00 2001 From: olic32 Date: Wed, 5 Apr 2023 12:24:51 +0100 Subject: [PATCH] Added CI config --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..562d39d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +# The name of the workflow +name: Build and Test + +# This workflow will run on any push to the repository +on: push + +jobs: + test: + # Similar to docker, we set up a virtual machine to run our tests + runs-on: ubuntu-latest + + steps: + # Each step has a name, some code, and some options + - name: Check out the code + uses: actions/checkout@v3 # This is a reference to some code to run + + # This step installs the Python version we want + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + # This step installs pip, pipenv, and our dependencies + - name: Install dependencies + run: | # Note that there's no reference here — just commands to run + python -m pip install --upgrade pip + pip install pipenv + pipenv install --dev + + # Now we run our tests + - name: Test with pytest + run: | + pipenv run pytest \ No newline at end of file