From bc476ce627e790994d306e3a4f1cfd007fb5ac7e Mon Sep 17 00:00:00 2001 From: Spencer Murray Date: Mon, 8 Jul 2024 12:40:54 -0400 Subject: [PATCH] Add test action --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..bf3c15f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Run test and upload coverage + +on: + push + +jobs: + test: + name: Run tests and collect coverage + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + + - name: Install dependencies + run: pip install pytest + + - name: Run tests + run: pytest --cov + + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: spalmurray-codecov-org/public-repo +