Skip to content

Commit

Permalink
Add CI via Github Actions #2
Browse files Browse the repository at this point in the history
Inspired by danieleades/sphinx-graph's
  • Loading branch information
Jb DOYON committed Jun 3, 2023
1 parent a2055f7 commit 69f99d2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yaml
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]
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ The project uses semantic versioning (see [semver](https://semver.org)).
## [Unreleased]


## v0.13.2 - 2023-06-03
### Added
- CI (pytest, pre-commit) set up via Github Actions: [PR #1](https://github.com/mass-driver/pull/1)

## v0.13.2 - 2023-06-03

### Added
- New `file_ownership` parameter for `stamper`, defaulting to `0664`.
Expand Down

0 comments on commit 69f99d2

Please sign in to comment.