From 0793d0b6390bb206dabc42ff2e021d0b505aa0c5 Mon Sep 17 00:00:00 2001 From: Pietro Bolcato Date: Wed, 20 Sep 2023 20:59:04 +0200 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b17c877 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: ci +on: [push, pull_request] + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: eu-central-1 + - name: Set up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: 3.11 + - name: Set up `dev` conda environment + uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: dev + environment-file: envs/dev.yaml + auto-activate-base: false + - name: Run tests + run: | + python -m pytest vectorizing/tests/test.py \ No newline at end of file