Skip to content

Commit d1219f6

Browse files
Testing GH Actions
1 parent 2012942 commit d1219f6

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: test jsnac
3+
on: [push, pull_request]
4+
5+
jobs:
6+
linters:
7+
strategy:
8+
matrix:
9+
python-version: [ '3.10' ]
10+
platform: [ubuntu-latest]
11+
runs-on: ${{ matrix.platform }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
architecture: x64
20+
21+
- name: Install Poetry
22+
uses: snok/install-poetry@v1
23+
with:
24+
version: 1.9.0
25+
virtualenvs-create: true
26+
virtualenvs-in-project: true
27+
28+
- name: Cache Poetry virtualenv
29+
uses: actions/cache@v4
30+
id: cached-poetry-dependencies
31+
with:
32+
path: .venv
33+
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
34+
35+
- name: Install Dependencies
36+
run: poetry install
37+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
38+
39+
- name: Run tox
40+
run: tox

0 commit comments

Comments
 (0)