crawl mastodon trending articles for fresh data #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit testing | |
on: [push, pull_request] | |
jobs: | |
test_pull_request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.10.0 | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Installing requirements | |
run: | | |
python --version | |
python -m pip install --upgrade pip pytest pytest-asyncio mypy ruff black | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
python -m pip install -e . | |
- name: Running ruff | |
run: ruff . | |
- name: Running mypy | |
run: make typecheck | |
- name: Running pytest | |
run: pytest . |