-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from appsignal/github-actions
Use GitHub Actions as the CI
- Loading branch information
Showing
4 changed files
with
59 additions
and
88 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Python package | ||
on: | ||
push: {} | ||
schedule: | ||
- cron: "0 0 * * 1-5" | ||
jobs: | ||
test: | ||
name: "Test Python ${{ matrix.python-version }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: "Install hatch" | ||
run: "pip install hatch" | ||
- name: "Run tests" | ||
run: "hatch -v run test.py$(echo ${{ matrix.python-version }} | tr -d '.'):pytest" | ||
|
||
lint-style: | ||
name: "Style linter" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: "Install hatch" | ||
run: "pip install hatch" | ||
- name: "Run style linter" | ||
run: "hatch -v run lint:style" | ||
|
||
lint-typing: | ||
name: "Typing linter" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: "Install hatch" | ||
run: "pip install hatch" | ||
- name: "Run typing linter" | ||
run: "hatch -v run lint:typing" | ||
|
||
lint-git: | ||
name: "Git linter (Lintje)" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch depth is required | ||
- uses: lintje/[email protected] |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.