Skip to content

Instantly share code, notes, and snippets.

@FrancisZhuang
Created April 15, 2024 21:25
Show Gist options
  • Save FrancisZhuang/93f0c09d9685f2811fb06e13fdbd05c4 to your computer and use it in GitHub Desktop.
Save FrancisZhuang/93f0c09d9685f2811fb06e13fdbd05c4 to your computer and use it in GitHub Desktop.
Sample workflow
name: sample
on:
push:
branches:
- '**'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry install
- name: Test
run: |
source .venv/bin/activate
pytest .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment