Skip to content

Add token permissions to build + publish workflow #287

Add token permissions to build + publish workflow

Add token permissions to build + publish workflow #287

Workflow file for this run

name: Run CI checks
on: pull_request
jobs:
run_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- name: Run lint
run: make lint
run_test:
runs-on: ubuntu-latest
env:
CURL_BINARY_PATH: /home/runner/work/telescope/curl
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- name: Get curl with HTTP2 and HTTP3 support
run: |
wget https://github.com/stunnel/static-curl/releases/download/8.1.1/curl-static-amd64-8.1.1.tar.xz
tar -xvf curl-*.tar.xz
mv curl $CURL_BINARY_PATH
- name: Install dependencies
run: poetry install
- name: Run tests
run: make tests