Use newer ubuntu for GitHub Actions (it'll be the new default soon) #771
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: trailscraper standard checks pipeline | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
check-and-test: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9, "3.10", 3.11, 3.12, 3.13] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: ./go setup | |
- name: Check Code Style | |
run: ./go check | |
- name: Run Tests | |
run: ./go test | |
release-readiness-setuptools: | |
runs-on: ubuntu-24.04 | |
needs: check-and-test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test setuptools | |
run: ./go test-setuptools | |
release-readiness-docker-build: | |
runs-on: ubuntu-24.04 | |
needs: check-and-test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test docker build | |
run: ./go test-docker-build | |
codeql-analyse: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# We must fetch at least the immediate parents so that if this is | |
# a pull request then we can checkout the head. | |
fetch-depth: 2 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |