Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

chore: update global workflows #629

chore: update global workflows

chore: update global workflows #629

Workflow file for this run

---
name: Python Tests
on:
pull_request:
branches:
- master
types: [opened, synchronize, reopened]
push:
branches:
- master
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements-dev.txt
- name: Install npm dependencies
run: |
npm install
- name: Test with pytest
env:
TMDB_API_KEY_V3: ${{ secrets.TMDB_API_KEY_V3 }}
TWITCH_CLIENT_ID: ${{ secrets.TWITCH_CLIENT_ID }}
TWITCH_CLIENT_SECRET: ${{ secrets.TWITCH_CLIENT_SECRET }}
id: test
shell: bash
run: |
python -m pytest \
-rxXs \
--tb=native \
--verbose \
--color=yes \
--cov=src \
tests
- name: Upload coverage
# any except cancelled or skipped
if: >-
always() &&
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
startsWith(github.repository, 'LizardByte/')
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}