From 76533a3e13bc1d0427411868c19f13b71dd9b51b Mon Sep 17 00:00:00 2001 From: LMBooth <31129153+LMBooth@users.noreply.github.com> Date: Sun, 22 Oct 2023 23:23:30 +0100 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..b56276d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: + - main # or your default branch name + pull_request: + branches: + - main # or your default branch name + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Run tests with pytest + run: pytest + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + file: ./coverage.xml # adjust this path if needed