Skip to content

Commit 56ca11d

Browse files
authored
Merge pull request #1 from thehyve/gh-actions
GH actions
2 parents 8bebf61 + aca0e71 commit 56ca11d

File tree

7 files changed

+81
-18
lines changed

7 files changed

+81
-18
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Ruff
2+
on: [push, pull_request]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
9+
- name: Set up Python
10+
uses: actions/setup-python@v5
11+
with:
12+
python-version: "3.13"
13+
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v5
16+
17+
- name: Create uv venv
18+
run: uv venv
19+
20+
- name: Install nox and ruff
21+
run: uv pip install nox ruff
22+
23+
- name: Run ruff linter via nox session
24+
run: uv run nox -s lint

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: publish to PyPI 🐍
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
pypi-publish:
9+
name: upload release to PyPI
10+
runs-on: ubuntu-latest
11+
# Specifying a GitHub environment is optional, but strongly encouraged
12+
environment: publish_to_pypi
13+
permissions:
14+
# IMPORTANT: this permission is mandatory for trusted publishing
15+
id-token: write
16+
contents: read
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.13'
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
25+
- name: build package distributions
26+
run: uv build
27+
- name: Publish package distributions to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will install Python dependencies, run tests for a range of Python versions
2+
3+
name: tests
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.13"
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v5
21+
22+
- name: Create uv venv
23+
run: uv venv
24+
25+
- name: Install nox
26+
run: uv pip install nox
27+
28+
- name: Test with nox and pytest
29+
run: uv run nox -s tests

tests/python/mapping_updater/test_data/usagi_files/to_vocab/extensive/DRUG_MAP1.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/python/mapping_updater/test_data/usagi_files/to_vocab/extensive/DRUG_ROUTE_MAP1.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/python/mapping_updater/test_data/usagi_files/to_vocab/extensive/MEAS_MAP1.csv

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/python/mapping_updater/test_data/usagi_files/to_vocab/simple/DRUG_MAP1.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)