Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@
tests:
uses: ./.github/workflows/tests.yml
pip-release:
runs-on: ubuntu-latest
runs-on: namespace-profile-ubuntu-latest
needs: tests
env:
TWINE_PASSWORD: ${{ secrets.PYPI_INGESTR_TOKEN }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'

# github actions invoke a fresh shell
# for each step. This causes us to lose our
# venv context. So we run all our build commands
# in a single step to simplify our pipeline.
- name: build and release
run: |
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r requirements-dev.txt
make build
make upload-release

docker-build:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-24.04-arm
strategy:
Expand Down Expand Up @@ -111,7 +111,7 @@
contents: read
packages: write

runs-on: ubuntu-latest
runs-on: namespace-profile-ubuntu-latest
needs:
- docker-build
- tests
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@

jobs:
check-changes:
runs-on: ubuntu-latest
runs-on: namespace-profile-ubuntu-latest
outputs:
code-changes: ${{ steps.filter.outputs.code-changes }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code-changes:
- '**'
- '!**/*.md'
- '!docs/**'

tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: check-changes
if: github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || needs.check-changes.outputs.code-changes == 'true'
strategy:
matrix:
# I tried running stuff on macOS but it was too slow and unreliable.
# I also tried windows runners but couldn't get Docker to work there, so I gave up.
os: [ubuntu-latest]
os: [namespace-profile-ubuntu-latest]
python-version: [
'3.10',
'3.11',
Expand All @@ -46,8 +46,11 @@
steps:
- uses: actions/checkout@v4
- name: install Microsoft ODBC
if: matrix.os == 'ubuntu-latest'
run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
if: matrix.os == 'namespace-profile-ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y unixodbc unixodbc-dev
sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
- name: install Microsoft ODBC
if: matrix.os == 'macos-13'
run: |
Expand Down
Loading