-
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.
Inspired by danieleades/sphinx-graph's
- Loading branch information
Jb DOYON
committed
Jun 3, 2023
1 parent
a2055f7
commit 69f99d2
Showing
2 changed files
with
57 additions
and
1 deletion.
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,54 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
defaults: | ||
run: | ||
shell: bash | ||
runs-on: ["ubuntu-latest"] | ||
strategy: | ||
matrix: | ||
python-version: ["3.11", "3.12.0-beta.1"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install git | ||
uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: git | ||
version: "@latest" | ||
- name: Set Up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Poetry setup | ||
uses: Gr1N/setup-poetry@v8 | ||
- run: poetry install --with=test | ||
- name: Configure Git user (for tests) | ||
run: | | ||
git config --global user.name "Github Actions CI user" | ||
git config --global user.email "[email protected]" | ||
- name: Run the tests | ||
run: make test | ||
|
||
lint: | ||
name: Lint (pre-commit) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set Up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Poetry setup | ||
uses: Gr1N/setup-poetry@v8 | ||
- run: poetry install --with=test | ||
- name: Run the linters | ||
uses: pre-commit/[email protected] |
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