Skip to content

fix: wakatime_loader #204

fix: wakatime_loader

fix: wakatime_loader #204

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
jobs:
lint_and_test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set Variables
id: set_variables
shell: bash
run: |
echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_OUTPUT
echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache PIP
uses: actions/cache@v3
with:
path: ${{ steps.set_variables.outputs.PIP_CACHE }}
key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run lint
uses: pre-commit/[email protected]
- name: Run test
run: pytest tests/
- name: Run running tests
run: |
python -m github_poster github --github_user_name yihong0618
python -m github_poster multiple --types "github, dota2, twitter" --twitter_user_name Piglei --github_user_name piglei --dota2_id 70388657 --year 2018-2022
python -m github_poster twitter --twitter_user_name frostming90 --year 2017-2022 | tee a.txt