Fix crash when local image isn't found #274
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: PR | |
on: pull_request | |
jobs: | |
test-dotrun-ubuntu: | |
runs-on: ubuntu-latest | |
name: Test dotrun on Ubuntu (snapcraft.io project) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dotrun | |
run: | | |
pip3 install . requests==2.31.0 | |
- name: Install newest version of curl for --retry-all-errors support | |
run: sudo snap install curl | |
- name: Test snapcraft.io | |
run: | | |
git clone https://github.com/canonical-web-and-design/snapcraft.io | |
chmod -R 777 snapcraft.io | |
cd snapcraft.io | |
dotrun & sleep 10 && /snap/bin/curl --head --fail --retry-delay 10 --retry 30 --retry-all-errors http://localhost:8004 | |
lint-python: | |
runs-on: ubuntu-latest | |
name: Lint python | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install system dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
sudo pip3 install flake8 black | |
- name: Lint Python | |
run: flake8 . && black --line-length 79 --check . | |
check-inclusive-naming: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check inclusive naming | |
uses: canonical-web-and-design/inclusive-naming@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
fail-on-error: true |