Skip to content

Commit

Permalink
Add test job to CI pipeline (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban committed Aug 22, 2023
1 parent 9ac38e3 commit fb2af83
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
run: sudo apt-get update && sudo apt-get install -y python3.10-dev python3.10-venv
- name: Install Poetry
run: |
sudo mkdir -p /usr/local/poetry
sudo python3.10 -m venv /usr/local/poetry
sudo /usr/local/poetry/bin/pip install poetry==1.6
sudo ln -s /usr/local/poetry/bin/poetry /bin/poetry
export PATH=/bin:$PATH
- name: Install Package
run: poetry install
- name: Test Package
run: cp .env.example .env && poetry run pytest

0 comments on commit fb2af83

Please sign in to comment.