From 75db3cc10222b51c98ad8c5e4d6e60304895401b Mon Sep 17 00:00:00 2001 From: Monique Rio Date: Thu, 19 Sep 2024 13:52:45 +0000 Subject: [PATCH] ci: add tests workflow --- .github/workflows/tests.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..b831aab --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,21 @@ +name: Run Tests + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Create .env file + run: cat env.* > .env + - name: Load .env file + uses: xom9ikk/dotenv@v2 + - name: Set up Python 3.11 + uses: ruby/setup-python@v5 + with: + python-version: 3.11 + cache: poetry + - run: poetry install + - name: Run tests + run: poetry run pytest \ No newline at end of file