Add rss source for Jason Fried blog #26
This file contains hidden or 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: CI Pipeline | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-on-pr: | |
if: github.event_name == 'pull_request' | |
name: Test on Pull Request | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e '.[dev]' | |
# - name: Install Playwright browsers | |
# run: | | |
# playwright install chromium | |
# playwright install-deps | |
- name: Run tests | |
run: pytest tests/ -v -m "not external" --cov=content_aggregator --cov-report=xml | |
# - name: Upload coverage | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# file: ./coverage.xml | |
test-on-main: | |
if: github.event_name == 'push' | |
name: Test on Main Commit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e '.[dev]' | |
# - name: Install Playwright browsers | |
# run: | | |
# playwright install chromium | |
# playwright install-deps | |
- name: Run tests | |
run: pytest tests/ -v -m "not external" | |
- name: Run type checks | |
continue-on-error: true | |
run: mypy src/content_aggregator | |
- name: Run security checks | |
continue-on-error: true | |
run: | | |
bandit -r src/content_aggregator | |
safety check |