Config GitHub Actions
This commit is contained in:
parent
e7ffa2a61b
commit
3329b738bb
24
.github/workflows/main.yml
vendored
Normal file
24
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
pull_request:
|
||||
branches: main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.10
|
||||
- name: Install Poetry
|
||||
run: pip install poetry
|
||||
- name: Init environment
|
||||
run: poetry install
|
||||
- name: Unit tests
|
||||
run: poetry run pytest src
|
Loading…
x
Reference in New Issue
Block a user