Skip to content

Commit

Permalink
Testing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaal111 committed Dec 17, 2023
1 parent d81e25b commit 6a33b9e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,34 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
timeout-minutes: 5
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install just
uses: taiki-e/install-action@just

- name: Initialize environment
run: just init-venv

- name: Test
run: just test

build:
name: Build
needs: [test]
timeout-minutes: 5
strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ build:

rm -rf dist
. .venv/bin/activate
python3 -m build
just install-self
python3 -m build

upload:
#!/bin/bash
Expand All @@ -23,6 +23,7 @@ test:
#!/bin/bash

. .venv/bin/activate
just install-self
pytest

install-self:
Expand Down

0 comments on commit 6a33b9e

Please sign in to comment.